How can i call common events method first
if we does the click event on any of the Entity it should call userdefined method or event then the general event
example this code calls
$(window).click(function(){
alert("I am supposed to be called first");
});
$("#div1").click(fucntion(){
alert("I am suppose to be called next");
});
$("#div2").click(fucntion(){
alert("I am suppose to be called next");
});
$("#div3").click(fucntion(){
alert("I am suppose to be called next");
});
recieving out put as
I am suppose to be called next
and then
I am suppose to be called first
But the required out put should be vise a versa
I am suppose to be called first
and then
I am suppose to be called next