I have a page with a radio button option group consisting of 2 buttons. There is also a dropdown select, the available options of which will be based on the user's choice in the radio group. I have a js that will do this based on arrays of the possible choices for the select. These arrays are hardcoded in the function.
My problem is that I want the select option choices to be soft coded and drawn from a table via an sql query so the arrays would be built dynamically when the page is loaded.
Can someone tell me how to do this? or is there another alternative for changing the options in the select?
Thanks
My problem is that I want the select option choices to be soft coded and drawn from a table via an sql query so the arrays would be built dynamically when the page is loaded.
Can someone tell me how to do this? or is there another alternative for changing the options in the select?
Thanks