473,795 Members | 3,481 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onchange of a dropdown

I need to capture a selected value of the onchange dropdown and put it in a
textbox???

--
Dave
Nov 19 '05 #1
3 1457
"DaveF" <df*****@geodec isions.com> wrote in message
news:uK******** ******@tk2msftn gp13.phx.gbl...
I need to capture a selected value of the onchange dropdown and put it in a
textbox???


What problem are you experiencing when you try to do this?

John Saunders
Nov 19 '05 #2
I just don't know how to do this clietside

--
David Fetrow
Helixpoint LLC.
http://www.helixpoint.com
da***@helixpoin t.com
"John Saunders" <johnwsaundersi ii at hotmail.com> wrote in message
news:uq******** ******@TK2MSFTN GP11.phx.gbl...
"DaveF" <df*****@geodec isions.com> wrote in message
news:uK******** ******@tk2msftn gp13.phx.gbl...
I need to capture a selected value of the onchange dropdown and put it in a textbox???


What problem are you experiencing when you try to do this?

John Saunders

Nov 19 '05 #3
"DaveF" <df*****@geodec isions.com> wrote in message
news:e%******** ********@TK2MSF TNGP11.phx.gbl. ..
I just don't know how to do this clietside
Ok, you didn't say you had to do it client side!

I'm not a JavaScript wizard, but I suppose that you have to get an
"onchange" event on the dropdown. That event should do something like
"textbox.va lue = dropdown.value; ".

You can add a client-side event to a server-side control via:

dropdown.Attrib utes("onchange" ) = "textbox.va lue = dropdown.value; "

John Saunders
David Fetrow
Helixpoint LLC.
http://www.helixpoint.com
da***@helixpoin t.com
"John Saunders" <johnwsaundersi ii at hotmail.com> wrote in message
news:uq******** ******@TK2MSFTN GP11.phx.gbl...
"DaveF" <df*****@geodec isions.com> wrote in message
news:uK******** ******@tk2msftn gp13.phx.gbl...
>I need to capture a selected value of the onchange dropdown and put it
>in a > textbox???


What problem are you experiencing when you try to do this?

John Saunders


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5171
by: Michelle | last post by:
I have tried every variation of the "onchange" statement below without any actual reloading of the page. I am hoping that the PHP PRINT statement is constructed wrong, otherwise it is javaScript error an needs to be posted in the javaScript newsgroup. The FireFox javaScript Console reports the following message: Error: missing : in conditional expression Source Code: location.href=themes.php?scheme=(form.color_schemes.options.value)
2
4134
by: Phil Powell | last post by:
I have a form with two single-choice dropdowns. Upon doing an onChange event on either one of them, I want to check to see if the other dropdown has also been selected. How would I do that, considering that this.parent causes an error "null or not an object"? Thanx Phil
2
27397
by: Mark Durgee | last post by:
I have a "submit" button in a form that creates a record in my Filemaker database that works as it should. This is the HTML for it: <INPUT TYPE="SUBMIT" name="-New" VALUE="Add Record"> I have a drop down list on that same form that works fine, but I want it to perform the same submit action as above once a value is chosen. This is the HTML for it:
10
7659
by: Ryan McGeary | last post by:
In a <select> drop-down, the onchange event isn't called when scrolling through the dropdown using the mouse-wheel and when crossing over a new <optgroup>. Using the example below, notice how the onchange event isn't called when mouse wheel scrolling between A3 and B1, but it works properly when scrolling between A1 and A2. E.g. ------------------------------------------
1
1227
by: thanawala27 | last post by:
Hi, I am facing some problem with this onchange function with dropdown menu. my task is: i have one column in a table with dropdown menus. so all the cells of that column have dropdown menus. when the page is loaded these dropdown have some predefined values (suppose, there are 5 rows in the table and the values of the cells of that column is 1, 4,2,6,5). when i change any value of any dropdown menu then, an onchange() function is invoked. i...
1
1503
by: madhusudangosula | last post by:
I need onchange in javascript for two dropdown list.. I have two dropdown list 1.Activity Type 2.Category At present both are independent to each other... Now the thing is i need to map those two tables...and if i select one field in Activity type ..onchange function should have to work ...This is my requirement..
21
29826
by: Leena P | last post by:
i want to basically take some information for the product and let the user enter the the material required to make this product 1.first page test.php which takes product code and displays prodcut anme have used ajax to avoid refreshing of page this works fine 2.now i have created one row with checkbox|select box|text|text|text|text| where in the select box values are fetched from table here also i have used ajax for getting the m_name...
6
2175
by: idj | last post by:
Hi, I'm using the following code to redirect to a new page with a select dropdown, which works fine: <script type="text/javascript"> <!-- function go(){ location= document.FRM_NAME.VALUE_NAME. options.value } //-->
16
4971
by: tarunkhatri | last post by:
Hi. I have a javascript function to change the value of the cell on chnage event of a dropdown list.My code is workin but the problem is that the value of the cell is chaning but not respective to the selected dropdown list( as there are 15 dropdown list and 15 cells), but only on the 1st cell. So need some identification for each cell. Can anyone help me just refine my code. <script type="text/javascript"> function displaytaskid(ths) { ...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10437
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.