469,295 Members | 1,927 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,295 developers. It's quick & easy.

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
Apr 28 '09 #1
2 1939
dmjpro
2,476 2GB
So do you need to change the option value or text value of the drop down box?

Expand|Select|Wrap|Line Numbers
  1. drop_downbox_ref.options[optionIndex] = new Option(value,text);
  2.  
Apr 28 '09 #2
acoder
16,027 Expert Mod 8TB
To empty an already-filled drop down, set options.length to 0 or null.
Apr 28 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by sheldongold | last post: by
1 post views Thread by quantass | last post: by
3 posts views Thread by Bruno Alexandre | last post: by
2 posts views Thread by lukemack | last post: by
4 posts views Thread by =?Utf-8?B?UmljaGFyZA==?= | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.