How to display Group name also along with dropdown list items using jquery multiselect in mustache

50 views
Skip to first unread message

sarah

unread,
Oct 15, 2013, 1:40:52 PM10/15/13
to ju...@googlegroups.com
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

here is the jquery widget that im using: http://quasipartikel.at/multiselect/
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!
      
Reply all
Reply to author
Forward
0 new messages