Dear all,
i have checkbox
ex:
<?PHP
$price_1 = $100
$price_2 = $10
?>
<input type=checkbox name=products[] value=id_1> buy host
<input type=checkbox name=products[] value=id_2> buy domain
blah blah....
now i want added the javascript when check box someone
show the price in text input
ex:
<input type=checkbox name=products[] value=id_1 onclick="showprice($price_1)"> buy host
<input type=checkbox name=products[] value=id_2 onclick="showprice($price_2)"> buy domain
and then + all price's if check multi products and when you uncheck - the price from total
then show price in
<input type=text name=total value="Javascript(showallprice)">
like this idea what the code javascript need for that please help me