How To Use jQuery To Select Element By Name

How can I use jQuery to select an element with “name” attribute e.g <input type=”text” name=”test” value=”‘ />

You can use jQuery attribute selector to select the html element with ‘name’ attribute

$('input[name=test]')
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments