jquery Select form elements

Source: Internet
Author: User

Form element Selector

Selector description

: the button <button> element and the Type property value are the <input> elements of the button.

: checkbox The value of the type attribute is the <input> element of the checkbox. use $ ([type= "checkbox"]) to achieve higher performance.

: Checked the selected radio button and check box element.

:d isabled all disabled elements.

: Enabled all elements that have been activated.

: The element where focus is currently focused. use $ (document.activeelement) to achieve higher performance.

: All file selector elements.

: Image all pictures button. Better with [type= "image"].

: Input all <button>, <input>, <select>, <textarea> elements. Selecting an element before using. Filter (": Input") is preferred.

:p assword all Password entry boxes. Use $ ("Input:password") to be more optimal.

: Radio all radio buttons. You can use $ ("Input[name= ' info ']:radio") when you need to select a group of radio buttons.

: Reset all reset buttons.

: Selected all selected elements. Using a CSS selector in the. Filter () method is better, such as:. Filter (": Selected").

: Submit <button> element and type attribute values are,<input> elements of submit. Use [type=] "submit" to be more superior.

: text selects all <input> elements with the type attribute value of text or the type attribute unspecified. Use (' Input:text ') better.

jquery Select form elements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.