Link to home
Start Free TrialLog in
Avatar of millerfw
millerfwFlag for United States of America

asked on

Populate Text Box form Dropdown java script and html

Hi Again Experts,
I am new to java script and html so this might be a real basic answer but here goes.

I have two drop down boxes in my html form one for Product_TypeA with a Cost_A text box
and one for Product_TypeB with a Cost_B text box

What I want to do is populate the cost boxes based on the selection in the dropdowns.

Now the next part may be more difficult.  If a selection is made in Product_TypeA dropdown then I want to disable Product_TypeB dropdown and vice versa.
SOLUTION
Avatar of jalalmegadeth
jalalmegadeth

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sachin_raorane
sachin_raorane

Jaax: had also provided you the answer on same line but the issue were
Once The combo is disabled then there was no way to enable it
secondly he was not explain how you can store the product and cost in javascript, i think that must be from your database and on your page you need Product Name to show in combo, product id to deside whcih product is selected and cost.

So here i propose my earlier comment as the answer for you question