Can you tell me why the value within this form input field does not clear when I click it? Here's the code...
Javascript called from within an HTML form question
5
Can you tell me why the value within this form input field does not clear when I click it?
Here's the code...
<head>
<script type="text/javascript"
function change()
{
document.getElementById("myField1").value="";
}
</script>
</head>
<input type="text" id="myField1" name="email" value="Enter Email" style="height:45px;width:463px;font-size:14pt;" onClick="javascript:change()" />
Thanks.
Alex
Here's the code...
<head>
<script type="text/javascript"
function change()
{
document.getElementById("myField1").value="";
}
</script>
</head>
<input type="text" id="myField1" name="email" value="Enter Email" style="height:45px;width:463px;font-size:14pt;" onClick="javascript:change()" />
Thanks.
Alex
- Musfiqur Rahman Banned
- robomedia
- robomedia
- Alex Cohen
- element121
- Badaudio
Next Topics on Trending Feed
-
5