I need remove the attribute \"checked\" of one checkbox when errors occur.
The .removeAttr function not work. Any idea? :/
HTML
using .removeAttr() on a boolean attribute such as checked, selected, or readonly would also set the corresponding named property to false.
.removeAttr()
checked
selected
readonly
false
Hence removed this checked attribute
$("#IdName option:checked").removeAttr("checked");