Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 03-16-2005, 10:09 AM   #1 (permalink)
nyoung
Registered User
 
Join Date: Mar 2005
Posts: 4
nyoung is on a distinguished road
Form Field Change

Ok well here is my dilemma,

I have an HTML form, all this form does is gather a few basic details, only 5 fields.

All I need to do is when the first dropdown field is changed I need to populate text elsewhere on the page with the value of what the surfer selects. ie. if they select March from the dropdown them immediately I need March to appear elsewhere in the text area of the page, outwith the form.

Hopefully this is really easy and I am just totally getting confused over nothing.

Thanks to anyone who can help...
nyoung is offline   Reply With Quote
Old 03-16-2005, 01:56 PM   #2 (permalink)
webcomplete.com
Registered User
 
Join Date: Mar 2005
Posts: 14
webcomplete.com is on a distinguished road
try this:
<form>
<select name="MyList" onchange="javascrip:MyNotes.value=MyList.value;">
<option value=""></option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
<option value="4">Four</option>
</select>
<br>
<textarea name="MyNotes">
</textarea>
</form>
webcomplete.com is offline   Reply With Quote
Old 03-16-2005, 11:07 PM   #3 (permalink)
nyoung
Registered User
 
Join Date: Mar 2005
Posts: 4
nyoung is on a distinguished road
Thanks for the quick reply, works a treat.

Thanks again
nyoung is offline   Reply With Quote
Old 03-17-2005, 04:38 AM   #4 (permalink)
webcomplete.com
Registered User
 
Join Date: Mar 2005
Posts: 14
webcomplete.com is on a distinguished road
welcome
webcomplete.com is offline   Reply With Quote
Reply

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
Passing Values from Popup Form to Main Form chrislopezz PHP 7 03-28-2005 12:45 PM
regex for allowed characters in a form field DogTags PHP 1 03-13-2005 08:42 AM
Calculated field in Access 2003 form codeboi MS Technologies ( ASP, VB, C#, .NET ) 1 03-03-2005 06:55 AM
EMERGENCY: Dynamic form processing DavH27 PHP 8 10-27-2004 07:52 PM
populate form field virtualGeorge PHP 4 08-23-2004 08:05 AM


All times are GMT -8. The time now is 10:00 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting