simpleCart (js) Dropdown

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dannygarcia
    New Member
    • Apr 2009
    • 1

    simpleCart (js) Dropdown

    Hi!
    I'm trying to use simpleCart to make a store site but I need some help.
    Customers need to be able to select from a drop down list of colors, sizes, etc.
    I know how to call a function from a dropdown as soon as it changes but how can I make an function that changes the value/options of the link code.

    I'd greatly appreciate any help.

    Thank you!
    Danny
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #2
    So do you need to change the option value or text value of the drop down box?

    Code:
    drop_downbox_ref.options[optionIndex] = new Option(value,text);

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      To empty an already-filled drop down, set options.length to 0 or null.

      Comment

      Working...