temujinleal Posted December 29, 2007 Share Posted December 29, 2007 Good day!! i would like to ask if how to make a javascript code if i have three radio buttons and a checkbox... if i will click on a radio button, it will automatically check the checkbox... thanks... Quote Link to comment Share on other sites More sharing options...
BenInBlack Posted December 29, 2007 Share Posted December 29, 2007 given this as your checkbox <input type="checkbox" id="thecheckbox" value="1"> add onclick="document.getElementById('thecheckbox').checked = true" to each radio button Quote Link to comment Share on other sites More sharing options...
temujinleal Posted December 30, 2007 Author Share Posted December 30, 2007 sir thanks for the sample code!! it helped me solve my problem.. thanks!! 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.