Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The method for choosing a particular element using its name using jQuery is to use the attribute selector. The syntax for using the attribute selector is as follows:

$("element[name='value']")

For example, to select an input element with the name "username", the code would be:

$("input[name='username']")