My team is developing a web application, for a particular element we have a click event which is defined in two js files.
$("#manage_teams_register_btn").live("click",function(){
// codes here
})
now I am appending html elements in one js file and in the other i am getting data from db and appending it. Is it possible to set some priority in these live click functions so that one gets called ahead of the other!?
I cant use solutions like putting all contents of one live click into a function and calling it from live click defined in other js or any other solutions, i need to put up the priority inside these live click functions. Is there a way we can do this??