On Mon, Jul 13, 2009 at 10:18 AM, Thierry<thi.l...@gmail.com> wrote: > $(document).ready( > function() { > $("a.foo").click(foo()); > } > )
This is probably not quite what you desire, as it will call foo() immediately, not on click. use $("a.foo").click(foo);// <--Note 'foo', reference to function, not foo(), call to function. -- Brett Ritter / SwiftOne swift...@swiftone.org