I think this article should help: http://docs.jquery.com/How_jQuery_Works#Callback_with_arguments
--Karl ____________ Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 28, 2008, at 10:49 PM, dduck1934 wrote:
I had a quick question with the bind() method in jquery how do i use the bind to bind a function with arguments on an click $('#foo).bind('click',clickMe); function clickMe(x) { alert(x); } i thought i could do this.. $('#foo).bind('click',{x:'clicked'},clickMe); but that doesnt work. Im sure this is easy, but i cant seem to find examples of this. thanks for your help. -Matthew