Usually this error occurs when a jquery object sent through ajax request

Look out this scenario:



<textarea id='ans' name='ans'></textarea>




var qvar={ answer: ans };


    type     : 'POST',

    url      : "ajax-handler.php",

    cache    : false,

    data     : qvar,

    dataType : "json",

    success  : function(jresult){   },
error    : function(XMLHttpRequest, textStatus,                        errorThrown) { }   



In the above code jquery constructs html input element textarea "ans" as an object, when you simply send the "ans" in ajax request it generates "TypeError: Value does not implement interface HTMLInputElement" error.

Comments (0)
Leave a Comment

loader Posting your comment...