In my web page i am creating some button dynamically and By using ON binding some event with the button ,on some condition i have to disable this button for that i am using die() method but it is not seems to be working on ie7 ,it is working fine on mozilla and chrome
$('#BtnShow').die('click');
Is there any wayaround for ie7?
Use
.offwhen you bind events using.on.Use
.diewhen you bind events using.live. (Note: both.liveand.dieare deprecated.)Use
.undelegatewhen you bind events using.delegateUse
.unbindwhen you bind events using.bind.Note: When using delegated events, make sure the selector used in
.on/.delegate/.livematches with the selector in.off/.undelegate/.die