realjumper Posted January 14, 2008 Share Posted January 14, 2008 Hi, the code below checks the radio button when the checkbox is selected. If the user changes their mind and un-checks the checkbox, how can I make it also un-check the radio button? Thanks for your help <input type=checkbox onclick="if(this.checked)document.getElementById('cb3').checked=true">checkbox 1<br> <input type=radio id=cb3 >radio 1 Quote Link to comment Share on other sites More sharing options...
taith Posted January 14, 2008 Share Posted January 14, 2008 i made this for a select/check box... but i think it'd work the same here... function uncheck(el){ el=getObject(el); if (el.checked==true) el.checked=false; } then... you can... <input type=checkbox name="" id="234" onchange="uncheck('radio')"> ... or whatnot... Quote Link to comment Share on other sites More sharing options...
realjumper Posted January 14, 2008 Author Share Posted January 14, 2008 Okay, thanks....I'll have a play with that Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.