Getting a value from a parent function?
Hello all
I am slightly confused, usually I can just find the answer from digging around the net and experminting but not this time!
- $('.result').tooltip({
track: true,
delay: 0,
showURL: false,
showBody: " - ",
extraClass: "tip",
fixPNG: true,
left: -120,
bodyHandler: function() {
return $(this).$('.tooltip').html();
}
The bodyHandler is the part I can't figure out. What I am trying to do is select some html contained in a div indside '.result' called '.toopltip'.
I know the problem - I am inside another function which has become the new 'this' but how do I get back to the parent 'this' selector.
Many thanks for reading :-)