One way to go about it is to put all your submit functions within a sort of
"master function," that will be the only function bound to the submit event.
Then you can guarantee the order of execution. Like so:
$("#myform").bind("submit", masterfunction);
masterfunction = function() {
dofunction1();
dofunction2();
}
-- Josh
----- Original Message -----
From: "Fabien Meghazi" <[EMAIL PROTECTED]>
To: "ML:jQuery" <jquery-en@googlegroups.com>
Sent: Wednesday, October 03, 2007 1:56 PM
Subject: [jQuery] Bind event that should be executed first
Hi all,
I have to bind an event of type "submit" to a form but I have to make
sure that the function binded will be executed before other submit
bindings.
Is it possible with jQuery ?
--
Fabien Meghazi
Website: http://www.amigrave.com
Email: [EMAIL PROTECTED]
IM: [EMAIL PROTECTED]