Hi All

Can someone clarify the use of the JavaScript keyword

this

in a jQuery context?

I find it strange that the following code doesn't work

$(this + '.requiredField')

but this does

$(this.id + '.requiredField')

even when the object calling the code does not have an id attribute!

Is there a way to mix the very handy

this

keyword with the sensational ability of jQuery to get an array of
objects with blah class name ?

Reply via email to