Populate HTML select with Store

  1. #1

    Populate HTML select with Store

    Does anyone know how or can help me with populating a traditional HTML select with values from a store... I have a requirement where the client insists on a traditional select - but would still like to use the store on the backend.... Anhy help would be GREATLY appreciated!!
  2. #2
    Just in case anyone else needs it...

     for (var i = 0; i < this.getCount(); i++) {
    var record = this.getAt(i) || {};
    var sel = document.getElementById('selMod');
    sel.options[sel.length] = new Option(record.data.VAL, record.data.TXT);
    }

Similar Threads

  1. Replies: 0
    Last Post: Jan 04, 2011, 8:25 PM
  2. [CLOSED] Populate store from xml file
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 04, 2010, 11:11 AM
  3. Replies: 12
    Last Post: Jun 30, 2010, 9:31 PM
  4. How to populate multi select on button click
    By ajaybabu.maddinani in forum 1.x Help
    Replies: 0
    Last Post: Dec 01, 2009, 9:38 AM
  5. Method to populate any store with any generic list
    By signup in forum Examples and Extras
    Replies: 5
    Last Post: Oct 17, 2009, 12:28 AM

Posting Permissions