Answers for "how to clear radio field in jquery"

1

reset radio button jquery

$('input[name="correctAnswer"]').prop('checked', false);
Posted by: Guest on May-31-2021
-1

how to clear radio field in jquery

$("[name=color]").removeAttr("checked");
or
var presetValue = "black";
$("[name=color]").filter("[value='"+presetValue+"']").prop("checked",true);
Posted by: Guest on June-22-2020

Code answers related to "how to clear radio field in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language