[jQuery] Passing vars to function
HI, I have a simples question, hope to get some answer...
Im having difficulty to pass vars to functions like:
$("#artigos_listagem li").mouseover(function(e){
var orgBg = $(this).css('background');
$(this).css({
background: "#ffffaa"
});
});
$("#artigos_listagem li").mouseout(function(e){
$(this).css({
background: orgBg
});
});
Like you can see, inside the second function Im trying to use the orgBg vars, and I would like to pass like .mouseout(function(e, otherVar){
hope you can help me, thanks!
---<br clear="all">Maginot Júnior