PDA

View Full Version : price calculator with checkbox id



hantz
11-23-2007, 12:25 AM
this script as you see sumup the total price of the packages (left)
and add to this price the pay method additional cost(right)

now, the value of the checkboxes is the price of each item
the name of each box is "checpack" and there is no id
and that is exactly my problem...i want to move all the prices to the "id" and that the script will colculate the prices from the id and will left the value for the names of those packages(on submit i will post the names of the packages and not their prices)

<input type="radio" name="checpack" id="here will be the values" onClick="calc(this.form)"
value="rs("here will be the names")">

can someone please help me?:(

hantz
11-23-2007, 04:43 AM
the problem was that i didn't see that instead of .id there was .value