[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] Re: Passing vars to function

2009-01-12 Thread seasoup
untested, but the point is you can pass an object as the second parameter of the .bind() function. Doesn't work with the shortcuts as far as I know. Then, you can access those object in the event.data property of the event passed into the function. $("#artigos_listagem li").mouseover(function(e

[jQuery] Re: Passing vars to function

2009-01-12 Thread Scott Sauyet
Maginot Junior wrote: HI, I have a simples question, hope to get some answer... Im having difficulty to pass vars to functions like: [ ... ] $("#artigos_listagem li").mouseout(function(e){ $(this).css({ background: orgBg });