efficacious Posted September 2, 2008 Share Posted September 2, 2008 I'm having a issue with a js script that works fine in IE7 and for some reason throws a Error: document.getElementById("HDay") is null Below is my js code: <script type="text/javascript"> function openday(x) { document.getElementById('HDay').value=x; document.getElementById('Hform').submit(); } </script> html: <!-- HIDDEN FORM //--> <form action='schedule.php' method='post' name='Hform'> <input type='text' name='HDay' value='' /> </form> <!-- HIDDEN FORM //--> thanks everyone, eff Link to comment https://forums.phpfreaks.com/topic/122391-solved-js-works-in-ie7-no-prob-ff3-gives-error/ Share on other sites More sharing options...
efficacious Posted September 2, 2008 Author Share Posted September 2, 2008 nvrm i figured it out.. FF3 wouldn't except name tag as ID IE does.. Link to comment https://forums.phpfreaks.com/topic/122391-solved-js-works-in-ie7-no-prob-ff3-gives-error/#findComment-631979 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.