jquery获取不了输入框的值 获取的值始终为"",怎么回事呢
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery AUTOCOMPLETE ORDER BY CNTLIS</title>
<script language="javascript" src="jquery.js"></script>
<script language="javascript" src="jq.dimensions.js"></script>
<script language="javascript" src="jq.complete.js"></script>
<style type="text/css">
</style>
<script language="javascript" type="text/javascript">
$(function() {
$("#Keyword").AutoComplete("Jquery?toPage="+$("#Keyword").val());
}); //end document.ready
</script>
<link href="jq.dimensions.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="330">
<div id="content">
<input name="Keyword" type="text" id="Keyword" size="50" maxlength="30" autocomplete="off" />
</div>
</td>
</tr>
</table>
</body>
</html> 展开
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery AUTOCOMPLETE ORDER BY CNTLIS</title>
<script language="javascript" src="jquery.js"></script>
<script language="javascript" src="jq.dimensions.js"></script>
<script language="javascript" src="jq.complete.js"></script>
<style type="text/css">
</style>
<script language="javascript" type="text/javascript">
$(function() {
$("#Keyword").AutoComplete("Jquery?toPage="+$("#Keyword").val());
}); //end document.ready
</script>
<link href="jq.dimensions.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="330">
<div id="content">
<input name="Keyword" type="text" id="Keyword" size="50" maxlength="30" autocomplete="off" />
</div>
</td>
</tr>
</table>
</body>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询