Uncheck radio and checkbox buttons
What's the cross-browser way to uncheck an <input type="radio"> and <input type="checkbox"> elements?
Whatever I do, it'll do nothing in
IE6:
- $theElement.attr("checked", false);
- $theElement.removeAttr("checked");
- $theElement.get().checked = false;
In
IE7, checkboxes get unchecked with all these methods but none work for radio buttons. In all other browsers, they all work fine.