$("input[@type='text'],[@type='password']")iE7不支持? alert($("input[@type='text'],[@type='password']"))在firefox下能取得是对象,在IE7下是undefined,请问是什么情况,怎么解决? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 写错了,是alert($("input[type='text'],[type='password']")) jquery是1.4.4 <!DOCTYPE HTML><html> <head> <meta charset="gb2312" /> <title></title> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <input type="password" value="123" /> <script> alert( $(':input[type=password]').val() ) </script> </body></html> alert($("input[type='text'],input[type='password']")) 解决 奇怪的问题 请教JS 解析XML问题 求js计算排列组合算法 javascript数组属性length的使用方法? 如何从一个html文件直接传递值到jsp文件,谢谢 怎样用JSP或JavaScript获取客户端浏览器的语言设置? 如何把數字前面的“數字0”去掉呢,?謝謝 JavaScript如何从servlet动态取数啊? 小问题,立即给分 闭包的一个小问题 javascript中关于cookie的问题 js 16进制定义跟相加
jquery是1.4.4
<html>
<head>
<meta charset="gb2312" />
<title></title> <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<input type="password" value="123" />
<script>
alert( $(':input[type=password]').val() ) </script>
</body>
</html>