Legendary; many thanks for that!!!
Main Topics
Browse All TopicsHi Experts
I've already posted a question relating to this which has been answered perfectly but i didn't want to be cheeky and add this onto it so there are more points available for completing this.
Previous link is as follows:
http://www.experts-exchang
Anyway i'm using the following code to add the value of (#idBox) to the option values of a select box (#itemname):
$(document).ready(function
$("#submit").click(functio
$('#itemname option').each(function(){$
return false;
});
});
That works perfectly as initially required; i have something additional that has only just reared it's head to this; any chance you can show me how i can combine this idea but set more precisely where i put the value of the (#idBox) textbox? I'm thinking subString sort of thing but essentially my option value code looks as follows:
<option value="(1 month) {75.00}">1 month - £75.00</option>
The {75.00} is needed for the shopping cart but if i use the a code above it adds the (#idBox) value at the end and the shopping cart for some annoying reason needs the {75.00} to be the last thing in the option value code.
I'd like to be able to set the addition of (#idBox) value to be 9 characters in from the end (ie before the {75.00}.
500 points available for this...
Cheers
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: sh0ePosted on 2008-10-24 at 06:37:19ID: 22796014
Select allOpen in new window