Option values

This is a discussion on "Option values" within the Web Page Design section. This forum, and the thread "Option values are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 5th, 2007, 15:23
New Member
Join Date: Jul 2007
Location: somewhere in this world
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Option values

Below is a option and a text box , well basicly what i wanted to do is whenever the user chooses a option , the value would be shown on the text box

Wanted output :

option = Women suit
text box = 4

Hope you guys could help me out.
Thanx in advance

/*
<td width="128"><select size="1" name="cboItem1">
<option selected>None</option>
<option value="4">Women Suit</option>
</select></td>

<td width="71"><input type="text" name="txtItem1UnitPrice" size="7" value="0.00"></td>
*/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 5th, 2007, 16:06
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Option values

<td width="128"><select size="1" name="cboItem1" onchange="document.getElementById('txtItem1UnitPrice').value =this.value;">
<option selected>None</option>
<option value="4">Women Suit</option>
</select></td>

<td width="71"><input type="text" name="txtItem1UnitPrice" size="7" value="0.00"></td>
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 5th, 2007, 17:47
Highly Reputable Member
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Option values

You posted this in two places. I posted a PHP solution here .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 6th, 2007, 10:09
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,669
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Re: Option values

Quote:
Originally Posted by c010depunkk View Post
You posted this in two places. I posted a PHP solution here .
Thank you for linking to the other thread.

AdINo, if unsure, post in the Webforumz cafe, but please do not create duplicate threads. It doesn't help us help you.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
option, values

Thread Tools

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
Option values AdINo JavaScript Forum 2 Jul 5th, 2007 18:48
How to put bookmark option in my website lekha Starting Out 1 May 12th, 2007 11:47
Setting Form Values to Previously Entered Values masonbarge PHP Forum 6 Oct 17th, 2006 17:36
Assign string values to integer values of a session variable Andy K Classic ASP 1 Jul 13th, 2005 08:29
I need help with the Select Option..... courtjester JavaScript Forum 6 Nov 19th, 2003 14:34


All times are GMT. The time now is 03:29.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42