码迷,mamicode.com
首页 > 其他好文 > 详细

:radio :checkbox

时间:2016-12-30 13:31:41      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:jquer   form   password   pre   file   res   pass   submit   for   

匹配所有单选按钮

 

示例

描述:

查找所有单选按钮

HTML 代码:
<form>
  <input type="text" />
  <input type="checkbox" />
  <input type="radio" />
  <input type="image" />
  <input type="file" />
  <input type="submit" />
  <input type="reset" />
  <input type="password" />
  <input type="button" />
  <select><option/></select>
  <textarea></textarea>
  <button></button>
</form>
jQuery 代码:
$(":radio")

:checkbox

结果:
[ <input type="radio" /> ]

:radio :checkbox

标签:jquer   form   password   pre   file   res   pass   submit   for   

原文地址:http://www.cnblogs.com/winyh/p/6236409.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!