View Full Version : java: change form input
signature16
3rd July 2006, 08:43
I want to have the value of a text input field say something, but when the users clicks on the box to enter their own info....everything needs to go away allowing them to put their info in.
How do i do this?
falko
3rd July 2006, 22:44
Have a look at the source code of the HowtoForge front page, especially the form where you can subscribe to the HowtoForge newsletter. It does exactly the same. :)
signature16
4th July 2006, 08:32
<script type="text/javascript">
function ClearMe()
{
document.getElementById("Text1").value=" ";
}
</script>
<input type=text name="attribute1" class="attributeinput" size="15" value="First Name" id="Text1" onclick="ClearMe()"/>
falko
5th July 2006, 10:38
So you got it working? :)
signature16
5th July 2006, 18:50
i did get it working. thank you.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.