no/good/at/this
12-31-2008, 04:58 AM
Hello everyone.
Ive been writing a few test forms to see what i do do not know.
This is just bugging me really, ive typed this simple form:
<form method="get" action="">
<label>Username</label><br />
<input type="text" name="username" value="username" /><br />
<label>Password</label><br />
<input type="text" name="password" value="password" /><br />
<input type="submit" value="Sign in" />
</form>
In the input fields where ive written value="", how do i get the text in the fields to clear when i click on them?
Do i need javascript for that or can it be done with good old html?
Thanks
Ive been writing a few test forms to see what i do do not know.
This is just bugging me really, ive typed this simple form:
<form method="get" action="">
<label>Username</label><br />
<input type="text" name="username" value="username" /><br />
<label>Password</label><br />
<input type="text" name="password" value="password" /><br />
<input type="submit" value="Sign in" />
</form>
In the input fields where ive written value="", how do i get the text in the fields to clear when i click on them?
Do i need javascript for that or can it be done with good old html?
Thanks