0

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

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by rajarajan2017
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.