#1 December 24, 2020 2:39am

Registered: December 5, 2017
Posts: 8

Dynamically change select element

In my module form, I want to change options of one select based on selection of another select. Somehow the change doesn't affect the select element. WHY?

Simple code I wrote is:
         var dd=$("select[name='exam_id']");
         dd.append("<option value='test'>Test</option>");


Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.