getInputs

getInputs(formElement [, type [, name]]) -> array

Returns a collection of all INPUT elements in a form. Use optional type and name arguments to restrict the search on these attributes.

Example

var form = $('myform')

form.getInputs()       // -> all INPUT elements
form.getInputs('text') // -> only text inputs

var buttons = form.getInputs('radio', 'education')
// -> only radio buttons of name "education"

// now disable these radio buttons:
buttons.invoke('disable')

Note

Input elements are returned in the document order, not the tabindex order.