JQUERY: Multiplying input elements select box and radio boxes and hidden inputs

Posted by Andrew Tan on Stack Overflow See other posts from Stack Overflow or by Andrew Tan
Published on 2012-11-14T04:32:44Z Indexed on 2012/11/14 5:00 UTC
Read the original article Hit count: 172

Filed under:

Evening,

I'm tyring to multiply different input elements but for some reason it's giving me a NAND error. As the user selects, check or modify the values of any element. This should change the total amount.

http://jsfiddle.net/aQ5K8/

<select name="select">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<input name="radio" type="radio" id="radio" value="10" tvalue="100" />
<input name="radio" type="radio" id="radio" value="20" tvalue="200" />
<label id="Total"></label>

Also if you take a look at the jsfiddle code i have tvalue=100 and the other is =200 as a custom attributes, how would I access that instead of accessing the regular html value.

Thank you.

© Stack Overflow or respective owner

Related posts about jQuery