Suppose this is the HTML.
You can use $('div') to get it. You can refer to it by "this". What if you want to get "img"? How do you apply selector on "this"?
The jQuery constructor accepts a 2nd parameter which can be used to override the context of the selection.
$("img", this);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment