blear Posted March 7, 2007 Share Posted March 7, 2007 Hello, I am trying to make an anchor which, when clicked, will toggle a checkbox associated with that anchor (there are many on the page) and then cause a seperate page to submit a form (a hidden frame with a secret form). This is not for any devious purpose. Can someone please give me a little insight as to how this can be done. Thank you in advance. Link to comment https://forums.phpfreaks.com/topic/41686-toggle-a-checkbox/ Share on other sites More sharing options...
mainewoods Posted March 8, 2007 Share Posted March 8, 2007 you can check or uncheck a checkbox like this: document.getElementById(theItemId).checked=true; document.getElementById(theItemId).checked=false; Link to comment https://forums.phpfreaks.com/topic/41686-toggle-a-checkbox/#findComment-202125 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.