2 Replies Latest reply on May 1, 2008 4:16 AM by GerryIsHere

    Reverse order of years...

    GerryIsHere Level 1
      Hi there!

      From the post located at this address I got the following function to populate a ComboBox with a list of years

      function popDrop(s,e){
      var dp = ["Choose a year"];
      for(var i = s; i <=e; i++){
      dp.push(i);
      }
      myDropDown.dataProvider = dp;
      }
      popDrop(1920, 2008);

      Instead of 1920 --> 2008, I wish to display years from 2008 to 1920.
      I unsuccessfully tried different solutions.
      Could you tell me the tip?

      Thanks in advance for it!

      Regards,

      Gerry