Hi,
I am defining <a> in the following way.
<a title="New User" role="button" id="newUser" href="#"><img src="/images/newUser.gif" alt="New User" class="Icon_NewUser"></a>
In my js file I have implemented click event like bellow
$jq("#newUser").die("click").live("click",function(e){
//my logic
});
This code is working fine in Jquery1.7. Now I moved Jquery1.7 to jquer1.11 with jquery migrate plugin.
After migration click event is working first time only. When I clicked second time the event is not triggering. When I replaced die() and live() methods with off() and on() it is working fine.
But in my application lot of places I have used <a> . I can't change all the files. For other attributes( input , select..etc ) it is working fine.
Why second time click event is not working. Please help me on this.