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 jq开发者_StackOverflow中文版uery and use these values to make the drop down list. How do I do that?
- 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
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论