jQuery checked a radio button

To check radio button, you may use .attr

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

To remove radio button checked, 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 *


6 − three =

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>