1.

How to select a second item from unordered list and write a mouseover event to it?

Answer»

Yes, The $.GREP() method finds the elements of an ARRAY which SATISFY a filter function. In this case, the original array is not affected.

The following condition FILTERS numbers above 0 and RETURNS [1,2].

$.grep( [ 0, 1, 2 ], function( n, i ) {  return n > 0; })

The following returns [0] because invert set as true.

$.grep([ 0, 1, 2 ], function(n, i) { return n > 0; }, true);


Discussion

No Comment Found