/*HTML*/
<input type="radio" id="html" value="HTML" name="newsletter"><label for="html" class="light">HTML</label><br>
<input type="radio" id="plain_text" value="plain_text" name="newsletter"><label for="plain_text" class="light">Plain text</label>
/JS*/
var ele = document.getElementsByName("newsletter");
for(var i=0;i<ele.length;i++)
ele[i].checked = false;
/*jQUERY*/
$('input[name=Choose]').attr('checked',false);
Access the radio buttons via the name attribute.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.