471,832 Members | 1,467 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,832 software developers and data experts.

simpleCart (js) Dropdown

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!
Apr 28 '09 #1
2 1959
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);
Apr 28 '09 #2
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 NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.