example: <input type='radio' name='test' value='1' /> <input type='radio' name='test' id='nr2' value='2' /> <input type='radio' name='test' value='3' /> $$("input[type=radio][name='test'][value='3']")[0].writeAttribute("checked", "checked"); or $("nr2").writeAttribute("checked", "checked");
Related Blogs
- Related Blogs on Prototypejs
- Using PrototypeJS Object.extend, a very simple example
- Related Blogs on radiobutton
- Radio Button Component