我收到这条消息
未捕获的异常对象#displayusersearch2 没有方法“html”
代码是
<script src="../../javascript/jqueryfunctions.js" type="text/javascript"></script>
<script src="../../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="1" id="bid_popup" /></td>
</tr>
<tr>
<th scope="row"><font size="-1">Book Name</font></th>
<td><input type="text" value="1" /></td>
</tr>
<tr>
<th scope="row"><font size="-1">Author</font></th>
<td><input type="text" value="1" /></td>
</tr>
<tr>
<th scope="row"><font size="-1">Publisher</font></th>
<td><input type="text" value="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>
div 的 id 是 displayusersearch2。请求发送正确。我试图让响应显示在 div displayusersearch2