I have a page containing several different scripts, and there is some click event binding to the same element. So I encounter an issue with the event order. There is code. (for the more the script A and B is unknown).
I want execute Script A after Script B is executed.
//Script A
$('a').click(function (){
alert('1')
})
//Script B
$('a').click(function (){
alert('2')
})
Any advice? Thanks