I am trying to undo a click of a switch. I have a jquery click handler:
$("#myList").on("click","input", function(){
return false;
});
This works great when the value is already selected. But if I click on a radio button from a group that does not have a selected value, false is returned, and the element I clicked is actually selected.
Any clues?
Edit:
Here is a fiddle demonstrating the problem:
http://jsfiddle.net/SFZMm/2/
Edit2:
It just turned out that this only happens on chrome :( Firefox and IE work as expected. Perhaps a workaround?
source
share