0

Has JavaScript eq selector ?

We can select elements with eq[] in JQuery What about JavaScript ?

3rd Jun 2017, 2:58 PM
Serhat Merak
Serhat Merak - avatar
2 Answers
+ 7
Just an array index document.getElementsByClassName('rogue')[0] (Highlight at [0])
3rd Jun 2017, 3:32 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
0
eq?
3rd Jun 2017, 3:20 PM
_Retr0/-
_Retr0/- - avatar