Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How to put default in text area on form
Old 02-22-2009, 01:52 PM How to put default in text area on form
Skilled Talker

Posts: 68
Trades: 0
If I have a form set up and I want a text field to default to something if nothing is entered, how would I do that? For example, the form says "Number of people" and if they skip it, it will automatically say 1. Thanks!
kayla2 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-22-2009, 01:56 PM Re: How to put default in text area on form
GhettoFish's Avatar
Average Talker

Posts: 24
Name: Martin Söderberg
Trades: 0
<input name="name" type="text" value="1" />

"value" is the default value of the input-field.
__________________
“It is better to create than to be learned, creating is the true essence of life”
- Barthold Georg Niebuhr

Please login or register to view this content. Registration is FREE
GhettoFish is offline
Reply With Quote
View Public Profile
 
Old 02-22-2009, 01:58 PM Re: How to put default in text area on form
Skilled Talker

Posts: 68
Trades: 0
Excellent! Thanks!
kayla2 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to put default in text area on form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21006 seconds with 12 queries