I would like to add the option of having an optgroup in my select menus (see http://api.jquerymobile.com/selectmenu/).
How do I add this functionality to my SelectMenus?
I would like to add the option of having an optgroup in my select menus (see http://api.jquerymobile.com/selectmenu/).
How do I add this functionality to my SelectMenus?
Hello Ave!
You can always drag the HTML component into your pages and copy paste the code to see how it works.
Give it a try.
Happy Coding!
I need to change the values to variables imported from the database. What's the code I can use in HTML to do so?
@Max Katz - will you try and add this functionality?
Hello Ave,
You can add these components with JS code manually, without services. Please use append() method for such functionality.
Can I add JS code within an HTML blob? Also, what do you mean append? Can you give me a snippet of what you described?
How do I pass data from database to custom HTML
?
i don't know how to get the data from my database and then loop it to optgroups in js/html (loop meaning loop over all entries in db to create a select item for each)
In such case this should be implemented with custom JS logic.
I see.
Can you please show me the code how to make a query and get response data in javascript? This is the part I don't know. I only know how to get data from mapping.
Can you also please show me the code to input a variable into an append statement inside the string? Because from
"Apperyio('your_html_component').append('a rel="nofollow"New item/a');"
it appears like "append('a rel="nofollow"New item/a')" is a string and there is no way to insert a variable as argument to append.