xcaliber2222
Programmer
Hello all, Could someone please show me how I could parse out the numeric value from an option selected value? Once I have this value then I can perform a calculation and return the value beside the control:
<option value="">Choose One</option>
<option selected="selected" value="Dell PC/$500.00">Dell PC/$500.00</option>
<option value="HP System/$600.00">HP System/$600.00</option>
If I could grab the 500.00 value then I could do a multiplication x whatever is input into the qty field. I can also have it displaying the value in a lable if that's easier to work with as far as parsing the value is concerned:
<span id="Label1">Dell PC/$500.00</span>
Any help would be greatly appreciated.
Thanks,
Alejandro
<option value="">Choose One</option>
<option selected="selected" value="Dell PC/$500.00">Dell PC/$500.00</option>
<option value="HP System/$600.00">HP System/$600.00</option>
If I could grab the 500.00 value then I could do a multiplication x whatever is input into the qty field. I can also have it displaying the value in a lable if that's easier to work with as far as parsing the value is concerned:
<span id="Label1">Dell PC/$500.00</span>
Any help would be greatly appreciated.
Thanks,
Alejandro