I have a jQuery function like this;
$('#mybutton').toggle(function() {
alert("a");
}, function() {
alert("b");
});
This was working fine with jQuery 1.3.2 . Recently I've upgraded jQuery to 1.11.0 . Then the page alerts b
immediately after page load, and the button is disappearing. How can I fix this?
Here are the demos;