官术网_书友最值得收藏!

  • jQuery 1.4 Reference Guide
  • Jonathan Chaffer Karl Swedberg Karl Swedberg
  • 219字
  • 2021-08-20 16:29:44

Form selectors

The following selectors can be used to access form elements in a variety of states. When using any of the form selectors other than :input, providing a tag name as well is recommended (for example, input:text rather than :text).

  • Form element (:input): Select all form elements (<input> (all types), <select>, <textarea>, <button>)
  • Text field (:text): Select all text fields (<input type="text">)
  • Password field (:password): Select all password fields (<input type="password">)
  • Radio button (:radio): Select all radio button fields (<input type="radio">)
  • Checkbox (:checkbox): Select all checkbox fields (<input type="checkbox">)
  • Submit button (:submit): Select all submit inputs and button elements (<input type="submit">, <button>)
  • Image button (:image): Select all image inputs (<input type="image">)
  • Reset button (:reset): Select all reset buttons (<input type="reset">)
  • Standard button (:button): Select all button elements and input elements with a type of button (<button>, <input type="button">)
  • File upload (:file): Select all file upload fields (<input type="file">)
  • Enabled form element (:enabled): Select all form elements that are enabled (that is, they do not have the disabled attribute and users can interact with them)
  • Disabled form element (:disabled): Select all form elements that are disabled (that is, they have the disabled attribute and users cannot interact with them)
  • Checked box (:checked): Select all form elements—checkboxes and radio buttons—that are checked
  • Selected option (:selected): Select all form elements (effectively, <option> elements) that are currently selected
主站蜘蛛池模板: 无为县| 稻城县| 竹溪县| 九龙城区| 安顺市| 南漳县| 铁力市| 三原县| 平定县| 县级市| 柳州市| 浑源县| 铁岭县| 泸定县| 尼勒克县| 宁国市| 武汉市| 琼结县| 翼城县| 宿迁市| 保定市| 云霄县| 东乡县| 元谋县| 新沂市| 屏东市| 铁力市| 新巴尔虎右旗| 柳河县| SHOW| 崇文区| 苏尼特左旗| 扎鲁特旗| 福建省| 宁夏| 汨罗市| 瑞昌市| 柘城县| 新乡县| 沈阳市| 德保县|