suess0r Posted January 29, 2007 Share Posted January 29, 2007 Hi there,I have a site with my advertisement packages listed on them, with checkboxes as values (found at: http://www.clb411.com/adv.php) When they click on one of the packages I would like it if the subtotal text field will be filled with the sum of the packages onClick of the checkboxes. I would assume I would fill the $textamount with an array that updates onclick somehow but i'm not sure exactly the best way to go about this... can anyone point me in a better direction? Link to comment https://forums.phpfreaks.com/topic/36222-calculating-a-sum-of-checkboxes-amounts/ Share on other sites More sharing options...
nloding Posted January 29, 2007 Share Posted January 29, 2007 This isn't PHP ... this is going to be Javascript. You'll need to use the DOM and pull the values of the checkboxes into a Javascript variable that is used as the value of the text box. Link to comment https://forums.phpfreaks.com/topic/36222-calculating-a-sum-of-checkboxes-amounts/#findComment-172139 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.