[jQuery] Re: Passing vars to function

2009-01-13 Thread Maginot Junior
Hmm thanks for the help! This help me understand more of how jquery works, just to keep update, I did the follow to workaround: $("#artigos_listagem li:even").addClass('even'); $("#artigos_listagem li").mouseover(function(e){ $(this).css({ backgroun

[jQuery] Passing vars to function

2009-01-12 Thread Maginot Junior
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: "#aa"