473,385 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 2002
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

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

Similar topics

2
by: Sean | last post by:
I am frustrated by the issue, and looking for a workaround. I have a dropdown list, and a button and some other controls on the page. When the button is clicked, I need to ensure a valid dropdown...
1
by: sheldongold | last post by:
Hi, I've got a dropdown list of products and I have a button that will add the product to my cart. However, as with all my 'add to cart' buttons, when the user clicks it I want to pass the...
1
by: quantass | last post by:
The webpage attempts to display a dropdown menu making heavy use of CSS and <UL>, <LI> tags. From my investigation, the standard CSS Hover pseudo attrib is being used, which I figure is the reason...
3
by: Bruno Alexandre | last post by:
Hi guys, I'm performing a form validation using the javascript in the ASPX pages and I got into a part that I can't figure it out how to move foward. All is resumed in this page: ...
3
by: sewerized | last post by:
Hello all, I'm having a problem with a user preferences form I'm creating. I want to use dynamic dropdown SELECT boxes for this so my page doesn't get cluttered with 100000 links. Since I...
2
by: lukemack | last post by:
hi, i am trying to make the contents of one drop-down box dependent on the contents of another using AJAX (prototype.js) and PHP I have it working so that a new dropdown appears when i select...
7
by: Brita | last post by:
I have dropdown navigation drawing from a database. There is a dropdown box for all the states we have. When you choose a stat, the counties in the next dropdown box are created. My problem is...
4
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hi, I have an ASP .NET page with codebehind in a vb file. The page has a dropdown control, and a JS function which used HTTP XML Request to get the data from the database, and populate the...
16
by: tarunkhatri | last post by:
Hi. I have a javascript function to change the value of the cell on chnage event of a dropdown list.My code is workin but the problem is that the value of the cell is chaning but not respective to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.