|
|
#1 |
|
Beta Member
Join Date: Aug 2010
Posts: 2
|
This is probably the simplest thing ever for you guys. But I am trying to get into web design.
So here is what I am trying to do. I have two textboxes and i want the text inside the textbox to disappear when it is clicked, but I want it to reappear when the other textbox is clicked Original Page a) [Username] b) [Password] If a is clicked. a) [ ] b) [Password] if b is clicked. a) [Username] b) [ ] if anywhere else on the page is clicked. a) [Username] b) [Password] Soo. that being said, here is what I have so far. <html> <p> <br /> <input type="textbox" onclick=value="" value="Username" /> <br /> <br /> <input type="textbox" onclick=value="" value="Password" /> </p> </html> |
|
|
|
|
|
#2 |
|
Site Team
Join Date: Jul 2009
Posts: 2,627
|
Have a look here: Text box onclick event handling: removing default data
You'll need javascript to do this, but it's simple enough
__________________
Save the whales, feed the hungry, free the mallocs. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|