Hi All,
I am just starting to learn jQuery on my own and I'm bit confused looking at the below code. The argument in the below code $("span", this).addClass("bar");, is 'this' context referring to document context or div.foo context. Will it only look for the span selector inside the div element with foo class???
$( "div.foo" ).click(function() {
$( "span", this ).addClass( "bar" );