4 Replies Latest reply on Jun 20, 2011 7:07 AM by kglad

    "Please Select"

    Ron Colmen Level 2

      This is the code in my UI combobox menu. How do I display "Please Select" as the default when the page loads?

       

      for (i=1; i<201; i++) {

      dropdown.addItem({data:[i], label:["Item Number "+i]});

      }

       

      var cbListener:Object = new Object();

      cbListener.change = function(evt_obj:Object):Void{

      var currentlySelected:Object = evt_obj.target.selectedItem;

      ItemField.text=currentlySelected.label;

      };