Announcement

Collapse
No announcement yet.

Changing the order of permutation choices

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by TraceyHand View Post
    Gabe, I love you but you lost me at "serious javascript"
    I got lost at 'serious' !

    'javascript' just doesn't register with me !
    www.quantumAV.co.uk
    Home Cinema Receivers and Speakers for Audio Visual Entertainment
    Authorised Dealers for Yamaha/ Monitor Audio/ Kef/ Onkyo/ Marantz/ Denon/ and more..

    Comment


      #17
      number/order the items.

      put:


      a - ergsewrgsergserg
      b - sregrdth drthdrth
      c - dytjhdt yjhdyhdyth tr


      as the names.

      Comment


        #18
        thanks, I was being dumb!

        I had thought of that but for some reason assumed that the number would show in the drop down list forgetting the html line in the choice.

        So I will probably go with 5,10,15,20 etc to allow for inserts later.
        www.quantumAV.co.uk
        Home Cinema Receivers and Speakers for Audio Visual Entertainment
        Authorised Dealers for Yamaha/ Monitor Audio/ Kef/ Onkyo/ Marantz/ Denon/ and more..

        Comment


          #19
          If you want to order by something other than 'alphabetical' what would you do
          You'd have to amend the line

          optbits.sort();

          to be something more sophisticated. The array optbits is an array of strings which contain option description||option value. The sort method can be very powerful as you can use a function within it that does whatever you want (e.g. extract a price and use that). Google for JavaScript array sort for more information.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment

          Working...
          X