jquery - how to set up priority for functions in javascript -


my team developing web application, particular element have click event defined in 2 js files.

$("#manage_teams_register_btn").live("click",function(){  // codes here  }) 

now appending html elements in 1 js file , in other getting data db , appending it. possible set priority in these live click functions 1 gets called ahead of other!?

i cant use solutions putting contents of 1 live click function , calling live click defined in other js or other solutions, need put priority inside these live click functions. there way can this??

this model might helpful

$("#manage_teams_register_btn").live("click",function(){         function1();         function2(); });  function function1(){  }  function function2(){  } 

maintain 1 click event otherwise horriblly kills readability od code.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -