millerfw
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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