I want to allow the user to select as many checkboxes as they wish, and when they select or deselect the checkbox, I want a disabled textbox to be updated of the new value. I have an idea how to do it, such as, each time a checkbox is selected or deselected this will trigger the javascript. The javascript will find whether any of the checkboxes are checked, if they are, then add their values are added together and print to the disabled text box.
So let's say I have the code below.
<input type="checkbox" name="app" value="3.49" id="app_1" onclick="javascript:updateTextbox"/> <input type="checkbox" name="app" value="0.49" id="app_2" onclick="javascript:updateTextbox"/>
Is it possible to get the values of any checked boxes and then add them together? If so, would greatly appreciate some help

New Topic/Question
Reply


MultiQuote





|