<script type="text/javascript"> $(function(){ var myTag=$("input[id=myid][name=myname][type=button]").length; alert(myTag); }) </script> <input id="myid" name="myname" type="button" value="提交" />
<script type="text/javascript"> $(function(){ var myTag=$("input[id=myid][name=myname][type=button]").length; alert(myTag); }) </script> <input id="myid" name="myname" type="button" value="提交" />