jQuery表单选择器
2015-11-03 17:06
585 查看
jQuery表单选择器
对于不在form中的,甚至对于在form中的,也需要使用层级选择器进行筛选;
<div id="p1" attr="p1"> <input type="text" id="in001" value="in001"> <input type="text" id="in002" disabled="disabled" value="in002"> <input type="checkbox" id="chk001" checked="checked" > <input type="checkbox" id="chk002" > <select id="slt001"> <option>11</option> </select> <select id="slt002" multiple="multiple" size="5" > <option>21</option> <option selected="selected">22</option> <option>23</option> <option selected="selected">24</option> <option>25</option> </select> <textarea rows="2" cols="2" id="in003"></textarea> <button id="btn001">btn</button> </div> <div id="p2"> <form action="post" id="form01"> <input type="text" id="in101" value="in101"> <input type="text" id="in102" disabled="disabled" value="in102"> </form> </div> <form id="form02"> <input type="button" value="Input Button"/> <input type="checkbox" /> <input type="file" /> <input type="hidden" /> <input type="image" /> <input type="password" /> <input type="radio" /> <input type="reset" /> <input type="submit" /> <input type="text" /> <select><option>Option</option></select> <textarea></textarea> <button>Button</button> </form>
对于不在form中的,甚至对于在form中的,也需要使用层级选择器进行筛选;
相关文章推荐
- 【jQuery】遮罩效果的实现
- 基于jquery的-获取短信验证码-倒计时
- 一些jquery技巧
- jquery.validate验证text,checkbox,radio,selected
- jQuery-1.9.1源码分析系列(一)整体架构续
- jQuery表单对象属性过滤选择器
- jQuery子元素过滤选择器
- php+mysql+jquery 简易的检索自动补全提示
- jQuery属性过滤选择器
- 点击淡入淡出jquery
- Jquery 事件冒泡 以及阻止默认事件
- jQuery-1.9.1源码分析系列(一)整体架构
- 三、jQuery--jQuery基础--jQuery基础课程--第11章 jQuery 工具类函数
- 两种方法基于jQuery实现IE浏览器兼容placeholder效果【转】
- JQuery中的prop和attr
- 理解jquery的$.extend()、$.fn和$.fn.extend()
- 前端学习笔记(zepto或jquery)—— 布局技巧(一)
- jQuery 可见性过滤选择器
- jQuery uploadify-v3.1 批量上传
- jQuery内容过滤器