How to get an element with its name attribute with jQuery?
name
Is there anything (like # for id and . for class) for name in jQuery?
#
.
Answer
$('[name="ElementNameHere"]').doStuff();
jQuery supports CSS3 style selectors, plus some more.
No comments:
Post a Comment