jQuery remove radio checked

To uncheck radio button, you may use .removeAttr or .attr

	$("input:radio").attr("checked", false);
	//with id
	$("input#id_of_button").attr("checked", false);
	//or
	$("#id_of_button").attr("checked", false);

Or using .removeAttr

	$("input:radio").removeAttr("checked");
	//with id
	$("input#id_of_button").removeAttr("checked");
	//or
	$("#id_of_button").removeAttr("checked");

To checked a radio button, view this post

By Keenlio, May 7, 2014

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


seven × = 21

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>