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