Monday, December 24, 2018

javascript - How do I select an element with its name attribute in jQuery?





How to get an element with its name attribute with jQuery?



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.



See more





No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...