Uncaught Exception Object #<objectid> has no method 'html'

~mR.bLaCk~

New Member
I am getting this message \[quote\] Uncaught Exception Object #displayusersearch2 has no method 'html'\[/quote\]The code is\[code\]<script src="http://stackoverflow.com/javascript/jqueryfunctions.js" type="text/javascript"></script><script src="http://stackoverflow.com/jquery.min.js" type="text/javascript"></script><script type="text/javascript">function uid_id_search_change(){ var search=document.getElementById('uid_id_search').value; $.get('userdisplaypopup.php?id='+search,userset); } function userset(res) { ('#displayusersearch2').html(res); Uncaught TypeError: Object #displayusersearch2 has no method 'html' } </script> <table width="600" border="0"> <tr> <th scope="row"><font size="-1">Book Id</font></th> <td><input type="text" value="http://stackoverflow.com/questions/11381265/1" id="bid_popup" /></td> </tr> <tr> <th scope="row"><font size="-1">Book Name</font></th> <td><input type="text" value="http://stackoverflow.com/questions/11381265/1" /></td> </tr> <tr> <th scope="row"><font size="-1">Author</font></th> <td><input type="text" value="http://stackoverflow.com/questions/11381265/1" /></td> </tr> <tr> <th scope="row"><font size="-1">Publisher</font></th> <td><input type="text" value="http://stackoverflow.com/questions/11381265/1" /></td> </tr> <tr> <th scope="row">Search User</th> <td><input type="text" id="uid_id_search" name="uid_id_search" onkeyup="uid_id_search_change();" /> <div id="displayusersearch2"></div></td> </tr></table>\[/code\]The id of the div is displayusersearch2. The request is sending correctly. I am trying to get the response to be displayed on the div displayusersearch2
 
Back
Top