- 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
推薦閱讀
- 中文版After Effects CC 2020完全自學(xué)一本通
- vtiger CRM Beginner's Guide
- 中文版AutoCAD 2014高手之道
- AutoCAD 2020從入門(mén)到精通
- 中文版Photoshop CC2018從入門(mén)到精通(第4版)
- Oracle 11g Streams Implementer's Guide
- UG NX 8.0模具設(shè)計(jì)教程
- Visio圖形設(shè)計(jì)從新手到高手(兼容版)
- Adobe創(chuàng)意大學(xué)InDesign CS5 產(chǎn)品專(zhuān)家認(rèn)證標(biāo)準(zhǔn)教材
- PKPM 2010結(jié)構(gòu)分析從入門(mén)到精通
- 邊做邊學(xué):CorelDRAW X6圖形設(shè)計(jì)案例教程(第2版)(微課版)
- Apache JMeter
- AutoCAD 2024室內(nèi)設(shè)計(jì)從入門(mén)到精通(升級(jí)版)
- Cinema 4D R20完全學(xué)習(xí)手冊(cè)
- PHPList 2 E/mail Campaign Manager