1.

How to force HTTP GET request to be not cached during ajax call?

Answer»

To select 2nd element from UL element, you can use NTH-child() function and it looks like this:

$('ul > li:nth-child(2)');

To find nth element from the list then you can pass the index 'N' to it.

$('ul > li:nth-child(n)');

The following CODE finds 2nd element from the list and HANDLES a mouseover event.

   let list = $('ul > li:nth-child(2)');    list.on('mouseover', function(){       // mouseover handle logic comes here.    });


Discussion

No Comment Found