Click to See Complete Forum and Search --> : FORMS: drop down menu to textbox values


ryan_abe
11-13-2003, 05:53 PM
aHow can I have my drop down menus activate a certain value in a text box.

Here is the URL of the project I have to do. It will help explain things a little better.
http://mail.misu.nodak.edu/~eberhardtr/BIT312/


I need to have each brand of liquor bring up a its value in a text box, then if possible have that textbox mulitplied by the Quantity to produce a total.

I'm hoping that theres an easier way than some hardcore database.

Thanks.

ryan_abe@hotmail.commail.misu.nodak.edu/~eberhardtr/BIT312/ (http://mail.misu.nodak.edu/~eberhardtr/BIT312/)

Khalid Ali
11-13-2003, 08:03 PM
This link (http://www.webapplikations.com/pages/html_js/forms/DropDownShowSelectionInTextField.html) will display how to put value in a text field, the other part of your question is simply calculation...visit
http://devedge.netscape.com

for details on JavaScript

ryan_abe
11-15-2003, 12:00 AM
Thanks perfect, but what is the code? Do I have to add all of that javascript to the <head>?

Khalid Ali
11-15-2003, 12:25 AM
not all,but only the relatve part of it

ryan_abe
11-15-2003, 12:25 PM
Is there a way that I can have this number that appears in the text box be multiplied with another entered value??

A product will be selected from the drop down menu, from that a value will appear in textbox1. Can the value in textbox1 be multiplied with another value (entered by another textbox or even another dropdown menu) to prduce a total???