logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-20-2008, 02:56 PM   #1
ali_b
 
Join Date: Apr 2007
Posts: 80
Default forms and css

Hello,

I was just wondering how to do something with some forms on my website.

Ive occasionally seen on website they have text feilds with text actually inside the form but then when you click on it that text disapears so you can type in the appropriate information.

How do you do this?

I know you can do this
HTML Code:
<input name="" type="text" value="username" />
but with this when you click in the field the world "username" doesnt disapear.

Thanks for your help

Ali
ali_b is offline   Reply With Quote
Old 01-20-2008, 02:59 PM   #2
ali_b
 
Join Date: Apr 2007
Posts: 80
Default

lol... i found out how to do it. if anyone is interested it is
HTML Code:
<input name="" type="text" value="username" onfocus="this.value=''"/>
cheers!
ali_b is offline   Reply With Quote
Old 01-20-2008, 04:10 PM   #3
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Yes, all you have to do often is just to view the source of the website that has the effect you're looking for
domedia is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:08 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com