bostboy — 2011-05-13T18:30:09-04:00 — #1
In hover, the structure is
var a = 1;},
If I want to access a that was set in the mouseover part of this structure, or I want to change the value of a from the second function, do I have to create a global variable that can be accessed by both or is there a way to pass this variable back and forth between the two functions since they are both within the hover event?
scallioxtx — 2011-05-13T19:00:38-04:00 — #2
I think I'd use .data() for that
alert( $(this).data('a') );
bostboy — 2011-05-13T19:06:09-04:00 — #3
Perfect, thanks. I appreciate it.