阅读背景:

$(“input:not(:empty)”)无效

来源:互联网 
<html>
<head>
<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
    alert('hi'+$("input:text").val());
    $("input:not(:empty)").val("sdfdf");
  });
});
</script>
</head>
<body>
<input type="text" value="aa" />
<input type="text" value="" />
<input type="text" value="aa" />
<button>Click me</button>
</body>
</html>
<html>
<head>
<script type="text/javascript" sr



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: