Reputation: 5366
I want to disable click event for image using image id
eg. for id12
i want to disabled click event . i tried using unbind but it seems it only works if event is binded using j query?
Upvotes: 2
Views: 1026
Reputation: 3607
Below is pure javascript code. Try this :
document.getElementById('id12').setAttribute("onclick", null);
Upvotes: -1