form field options

He has: 688 posts

Joined: Feb 2001

I thought this was possible but I can't fnid it. I have a simple form with a bunch of text fields (not textarea fields).

Quote:

I want to have it so that when the form first appears, many of the fields are pre-filled out. Then the user can just replace that text if it happens to not be right. I know you can have default values for checkboxes, radio buttons, and pulldown menus, but can this be done for a simple text field?

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

You can by using this:

input type="text" name="location" size="50" value="whatever you want in here"

Busy's picture

He has: 6,151 posts

Joined: May 2001

another thing for forms, is the label tag, this allows people to click on the actually words or the input box, radio, checkboxs ..

Name:

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.