I am using the following to hide and show two forum elements. When their respective radio button are selected. However it's not working. I don't know why the elements are not dissapearing, sorry for my naiveness in the area. I am new at this. Any help is greatly appreciated.
The url to the page is: http://nctietheknot.com/rsvp.html
The javascript used is below:
Code:window.onload = function(){ document.getElementById('ind').checked = true; setInterval(check, 1000); }; function check(){ if(document.getElementById('fam').checked){ openObject('family'); closeObeject('individual') }else{ openObject('individual'); closeObeject('family'); } } function closeObject(someID) { document.getElementById(someID).style.display = 'none'; } function openObject(someID) { document.getElementById(someID).style.display = 'block'; }


Reply With Quote
Bookmarks