Select from following answers:- val()
- each()
- filter()
- eql()
- All Above
In finding a specific element from the group of similar kind of element, eq() method can be used.
For Example :
$('p').eq(2).css('color', 'red');
this code snippet shall find the 2nd paragraph (“p”) from the page and apply foreground color as red.
Show Correct Answer
Asked In: Spotted While Learning |
Alert Moderator