sequence of events
sequence of events
Hallo,
I'm using the autocomplete widget in a HTML document. I added a change event handler to the widget. The source code looks like this:
$("#id_of_autocomplete_widget").autocomplete({
...,
change: function(event, ui) {
...
},
...
});
If I type text into the widget and blurs it a change event is triggerd and is processed correctly by the event handler. In the same HTML document I also added a submit button:
<INPUT ... type="submit" onclick="openConfirmationWindowFunction(0)" ... />
When I enter some text into the autocomplete widget and then click directly the button the native onclick event is processed always before the change event. But for my serverside application it is important that the change event is processed before the onclick event. So I would like to know weather there exists any possibility to change (determine) the sequence of event processing?
If not, are there any documentations (tutorials) that offer a deeper understanding of the event processing in browsers respectively jQuery?
Bye
Simon