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 test, it seems that both are called, but onclick is called before click(): <html> <head> <title>Testing</title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $('div').click(function() { alert('jQuery click'); }); }); </script> </head> <body> <div onclick="alert('onclick');">onclick test</a> </body> </html> On 8/27/07, Stephan Beal <[EMAIL PROTECTED]> wrote: > > 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 was a series of posts a few weeks ago where John Resig said that > it is not supported to have both a local onclick and a click() > handler. Use one or the other, but not both. IIRC (maybe wrong), the > click() function simply overwrites the onclick handler. > >