Add up Checkbox Values and Write to Input Field
问题 I have a form with some checkboxes and a Javascript snippet where the checkbox values get added up and written to a <span> . That works fine but I would really like it to write to an input text field instead of the <span> . Here is the checkbox section of my form: <section id="extra-features"> <div class="checkbox"> <label><input type="checkbox" name="checkbox" id="outside" class="sum" value="10" data-toggle="checkbox"> Outside Wash</label> </div><br/> <div class="checkbox"> <label><input