Can't remove pre-checked radio/checkbox attribs
Hi,
if you have a form with pre-checked radio or checkbox elements it is not possible to remove the checked states neither with
- $('#id').attr('checked', false);
- //or
$('#id').attr('checked', '');
nor with
- $('#id').removeAttr('checked');
If the elements are not pre-checked but you check them with mouse click - it works as expected. Background: I have a search form which is prefilled based on previous selections and queries but I need a reset button to clear all checkboxes and fields.
Any ideas/hints?