[jQuery] Getting the element inside a jQuery function call
Say I have something like this:
$("p").attr("rel", "someRel")
But instead of setting it as static, I want to set it based upon the attributes of the <span style="font-style: italic;">
p</span>'s in question. For instance, say I want to set the rel to be the same as the class. Is there any way to get access to the DOM element being worked on while inside a function call? <span style="font-style: italic;">
this</span> doesn't seem to work...<br clear="all">
--
Yehuda Katz
Web Developer | Wycats Designs
(ph) 718.877.1325
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/