Skip to content Skip to sidebar Skip to footer

Jquery Selector Context

In the following code, what does , this mean? var popup = $(popup, this).css('opacity', 0);

Solution 1:

The second argument in the selector is a context for search. $(a,b) is the same as $(b).find(a).

More information can be found at jQuery(), section "jQuery( selector, [ context ] )".

Post a Comment for "Jquery Selector Context"