Evertjan. a écrit:
<input type='submit' id='myButton'>
<script type='text/javascript'>
document.getelementById('myButton').style.display = 'none';
</script>
Hi,
Despite the fact that the code is simple, I can't get it to work.
Here's the source code from my browser:
Select a QuickTime Movie:
<FORM ACTION="./moviesindex.php?movieskind=qt" METHOD="post" NAME="nav2">
<SELECT NAME="url"
onChange="document.location.href=document.nav2.url .options[document.nav2.url.selectedIndex].value">
<OPTION VALUE=./moviesindex.php?movieskind=qt&moviename=mov1>Mouth
<OPTION VALUE=./moviesindex.php?movieskind=qt&moviename=mov2>Eyes
.... (other options)
</SELECT>
<INPUT TYPE="SUBMIT" id="MovieButton" VALUE="Clic here if the page does
not update">
<script type='text/javascript'>
document.getelementById("MovieButton").style.displ ay = "none";
</script>
</FORM>
I think it should not make any difference (since the code above is the
result), but all is done in php (I send all using the "echo" command).
I also tried using "<script language='Javascript'>".
It's hard when you know programming but not web programming: you know
logical ways of doing things, but the syntax and principles are totally
differents (I start from scratch)!
What do you suggest?