Magento Forum

Add Select options from javascript. 
 
jvrglokal
Jr. Member
 
Total Posts:  1
Joined:  2013-02-03
 

I am writing a custom module, which handles Warranty Claims. The customer need to enter a Fault Area and a Fault Code, to fill out the form.
Each Fault Area has an Associated list of Fault Codes. The user need to select those from two select lists.

I would like to have the first list update the second, when the users selects the fault area.

I know how to do this from basic JavaScript (yuck!) and jQuery. I don’t know prototype yet.
The frontend only has prototype enabled, and I don’t want to add jQuery, just for this one function.

Is there a clever way to do this from Magento?

I know of Mage_Core_Block_Html_Select, and am looking into how to use it.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top