checkbox - Can I use radio buttons/checkboxes in place of textboxes in a Javascript calculator? -
i have javascript calculator in users can enter quantities of products/features, , multiply quantity set price. then, result shows in textbox below. 2 questions are:
- i can use
<select>
options , specify value each 1 this:
<select name="site_em_4.99" onchange="calculatetotal(this.form)"> <option value=""> - select - </option> <option value="1">yes</option> <option value="0">no</option> </select>
however, won't let me same checkboxes/radio buttons. how can that?
two: can change script total shows actual text, vs in text field? thanks!
p.s. script can found here.
instead of having input total switch span (or else) id (let's "total"), , replace innerhtml
<script> function calculatetotal(frm) { ... document.getelementbyid('total').innerhtml = round_decimals(order_total, 2); ... } </script>
Comments
Post a Comment