I require to add options dynamically to drop down menu in a jquery ui dialog. My code is in php so i'll have to pass the variables to javascript function for jquery and use these values to make the drop down list. How do I do that?
Asked
Active
Viewed 1,715 times
1 Answers
2
- Send the options out of PHP as an array or JSON decoded data
- In Javascript when you create a dialog box you can run a function on dialog open. Use this as an opportunity to populate options.
- Select the /select box/ element and append select box with options.
If need help visit this post

Community
- 1
- 1

Farrukh Subhani
- 2,018
- 1
- 17
- 25