1.

How We Can Select The Specified <li> Element From The List Of <li> Elements In <ul>?

Answer»

If we want to GET the 4th &LT;li&GT; from the list of elements in <ul> then we can WRITE code as below –

$("ul li:eq(3)") // INDEX will start from 0.

If we want to get the 4th <li> from the list of elements in <ul> then we can write code as below –

$("ul li:eq(3)") // Index will start from 0.



Discussion

No Comment Found