[jQuery] Re: Order of execution with onclick and click

2007-08-27 Thread Erik Beeson
$.(#el1).click(function () { There shouldn't be a . between $ and ( I'm not sure about mixing jQuery events and inline events. I think people generally try to avoid it (like, just call jsfunction1 from your click handler). --Erik

[jQuery] Re: Order of execution with onclick and click

2007-08-27 Thread Stephan Beal
On Aug 27, 6:45 pm, Mike Miller [EMAIL PROTECTED] wrote: I have an html element that has an onclick attribute set which calls a couple of JS functions. Using jquery I am adding a click event to the same element. Can anyone tell me what the expected execution of js functions will be? There

[jQuery] Re: Order of execution with onclick and click

2007-08-27 Thread Theodore Ni
I just did a quick test because I had to visit this very issue when I had some problems combining Live Query with Interface draggables. It seems that click() doesn't touch onclick (which makes some sense because it might get messy firing multiple click() functions and unbinding them). From my