[nycphp-talk] Removing Text from an Input Box
Nelly Yusupova
nelly at cgim.com
Wed Jun 6 20:49:39 EDT 2007
Here is working example...
<input type="text" name="username" value="Enter Username"
onclick="this.value='';">
Sincerely,
Nelly Yusupova
<http://www.digitalwoman.com/> http://www.digitalwoman.com
_____
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Ben Sgro (ProjectSkyline)
Sent: Wednesday, June 06, 2007 8:44 PM
To: NYPHP Talk
Subject: [nycphp-talk] Removing Text from an Input Box
Hello,
This is more of a JS question, but I'm going to ask it anyways.
I just got the book, "Pro Javascript Techniques" (Apress) and what sucks is
that many of
the examples do not work.
What I want to do is have to input boxes, a username and password.
Instead of having labels next to them such as:
Username: [INPUT BOX]
Password: [INPUT BOX]
I want to have the text inside the box [INPUT BOX: Username]. etc...
When the user mouses over, I want to make that "Username" text dissapear so
they can type their username in.
Any help?
- Ben
Ben Sgro, Chief Engineer
ProjectSkyLine - Defining New Horizons
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070606/fe6e3905/attachment.html>
More information about the talk
mailing list