[[+content_image]]
N
N
nail4ik2015-10-19 20:01:07
JavaScript
nail4ik, 2015-10-19 20:01:07

How to summarize checkboxes and radio if value has text and numbers in attribute?

It is necessary to summarize the values ​​​​and display online. Calculator type.
Here is an example of inputs:

<input type="checkbox" name="color[]" value="blue" [[!+fi.color:FormItIsChecked=`blue`]]  atr="10"> Blue 
<input type="checkbox" name="color[]" value="Red " [[!+fi.color:FormItIsChecked=`red`]]  atr="20"> Red 
<input type="checkbox" name="color[]" value="Green" [[!+fi.color:FormItIsChecked=`green`]]  atr="30" > Green

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Alexander Golubev, 2015-10-19
@Piocan-Alex

I think the example from the link will help you: webuchitel.ru/JavaScript/js_07.html#input and webuchitel.ru/JavaScript/js_13.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question