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

  • 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
主站蜘蛛池模板: 昌江| 隆化县| 霍林郭勒市| 广宁县| 佛山市| 萨迦县| 阳西县| 武汉市| 蓬溪县| 遂昌县| 资兴市| 四子王旗| 土默特右旗| 青河县| 都匀市| 罗田县| 延庆县| 闸北区| 淳化县| 霍林郭勒市| 凤凰县| 岫岩| 金寨县| 禹州市| 邵阳县| 富平县| 西林县| 红原县| 山阳县| 天气| 泗阳县| 江安县| 玉环县| 阳朔县| 浦北县| 宜黄县| 汤原县| 农安县| 桦甸市| 太和县| 余江县|