Use an anonymous function wrapper. $('li').livequery('click', function() { deleteitem(id); });
On Jul 15, 4:17 am, Tom Shafer <[EMAIL PROTECTED]> wrote: > i got livequery to bind but i need to be able to pass a variable to it > > lets say i have a function like deleteitem(id) > how can i make livequery use this function with the variable > i tried this > > $("li").livequery("click", deleteitem); > > but i get a syntax error > deleteitem( > > how would i do something like this > > thanks