Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-11-2007, 02:08 PM   #1 (permalink)
Be CoOl rAp RuLeZ !!!
 
krates's Avatar
 
Join Date: Feb 2007
Posts: 1,967
Wink Creating autoclear form fields


Whenever you work with forms there is value field like you are working in a text field you will write


<input type=”text” name=”textfield” value=”welcome” />

Now that value is displayed adressing you what you have to write there
How the user will use it he will click on the field and delete the string welcome and write what he has to now if you want not to pain the user using a autoclear field using jscript event onFocus


Syntax

<input type=”text” name=”n” value=”Your message” onFocus=”if(this.value==’Your message’)this.value=’ ‘;”>

Note this thing is case sensitive
means


Welcome is not equal to welcome
when changing the welcome string note this point
And you are done

http://www.easytutorial.info/?p=4




Thanks
krares
__________________
iPhone 3G 16GB + Samsung I450 + Sennheiser CXL 400 + PSP Phat + Samsung NC10 :D

Previous phones: N73ME , W810I , Asus P320
krates is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 07-11-2007, 09:36 AM   #2 (permalink)
Dreamweaver
 
Gigacore's Avatar
 
Join Date: Aug 2006
Location: Bangalore
Posts: 3,904
Default Re: Creating autoclear form fields

thanks for sharing
__________________
Today's noobs are tomorrow's geeks. Don't make fun of them.. encourage them. - Gigacore

Follow me on twitter.com/gigacore
Gigacore is offline  
Old 07-11-2007, 09:44 AM   #3 (permalink)
Back in Power
 
almighty's Avatar
 
Join Date: Jun 2007
Location: Jampot
Posts: 526
Default Re: Creating autoclear form fields

Good Post
__________________
¡uʍop ǝpısdn ɹoʇıuoɯ ʎɯ pǝuɹnʇ oɥʍ ¡ʎǝɥ
almighty is offline  
Old 13-11-2007, 06:23 PM   #4 (permalink)
Wise Old Owl
 
hullap's Avatar
 
Join Date: Dec 2006
Location: delhi
Posts: 1,429
Default Re: Creating autoclear form fields

thsnks m8
hullap is offline  
Closed Thread

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Form in VB 6 part_time_ch QnA (read only) 7 20-08-2007 04:37 PM
full form of NHI Official Techie QnA (read only) 8 23-05-2007 07:40 PM
Form Factor adorablesrini QnA (read only) 2 20-01-2005 03:19 PM

 
Latest Threads
- by Who
- by Krow
- by clmlbx
- by Tech&ME
- by icebags

Advertisement




All times are GMT +5.5. The time now is 09:07 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2