Hello all,
I'm using mustache.js for rendering my page. here is the snippet of what im trying to do:
{{#items}}
<optgroup label ="Countries">
<option >
{{name}}
</option>
</optgroup>
{{/items}}
the items contains the json data and im trying to render it in a form of a table using the jquery multiselect plugin
im trying to add a label on top of the options, i.e
Countries:
Afghanistan
Albania...and so on
Any ideas how can it be implemented...i tried using the <optgroup>, howevevr it dosent work...may be im not using it the right way...
Any ideas appreciated...!!!!
Thanks!