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 Quote Link to comment 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.. 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.