getElementById is not working in my script
- Forums
- Javascipt
- getElementById is not working in my script
i have a short javascript script which is not working and i dont know what i am doing wrong. i have tried so many times to get it to work but its impossible so i just gave up and thought maybe you guys can help me [2214], Last Updated: Mon Jun 24, 2024
Celverclovis
Mon Mar 29, 2010
1 Comments
376 Visits
i have a short javascript script which is not working and i dont know what i am doing wrong. i have tried so many times to get it to work but its impossible so i just gave up and thought maybe you guys can help me,
this is how my function looks like:
<script type="text/javascript">
function CheckForm(){
alert(getelementbyid('q1').value);
}
</script>
and this is how my submit button looks like:
<input type="button" name="q1submit" id="q1submit" value="Submit" onclick="CheckForm();" />
so when i click on my button, nothing happens, i dont get a popup
https://www.webune.com/forums/20100329cbtt.html