jQuery need help calculating a form subtotal from options maybe using jquery to do it?

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

need help calculating a form subtotal from options maybe using jquery to do it?

Basically a client of mine has a form that has for now one option drop down with multiple options each with their own pricing and a quantity box, the drop downs do not have the price in the value however they have a long string of different info separated by : and the second bit of info is the price as in the example below.

What I need and am trying to create is a script which on page load it would calculate the price based on the first option being selected and quantity field having a 1 in it, the default.

Then anytime the quantity box is changed or the option drop down is changed it would recalculate.

The total would be displayed as a sub total on the page.

The price for each option would need to be split from the rest of the info which is in that option's value before being able to calculate it.

tenfold, both our codes can be used only as a draft, because there was no any attention payed to the text-box entered value filtering, so we can easily get $NaN in case the entered value has letters or other "wrong" chars. And please do not think that your work was done in vain. Even if the topic starter said nothing about your code, many others could check it and use for solving their problems. Thank you very much for participation and please keep it on.