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... Link to comment https://forums.phpfreaks.com/topic/83585-solved-question/ 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 Link to comment https://forums.phpfreaks.com/topic/83585-solved-question/#findComment-425342 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!! Link to comment https://forums.phpfreaks.com/topic/83585-solved-question/#findComment-426030 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.