this question is not similar to Mathematical calculations using jQuery/Ajax
so please downvoters.
i use two sets of radio buttons This fiddle i found shows the exact what i want http://jsfiddle.net/8FXFE/6/
can i add another hidden sort of value to those buttons that i can use in any calculation?
HTML
<div class="textForm">
<input type="radio" name="txtNumber" value="100" checked="checked" />100
<input type="radio" name="txtNumber" value="200" />200
<input type="radio" name="txtNumber" value="500" />500
<input type="radio" name="txtNumber" value="1000" />1000
<input type="radio" name="txtNumber" value="10000" />10000
<input type="radio" name="txtNumber" value="other" />other
<input type="text" name="other_field" id="other_field" onblur="checktext(this);"
/>
</div>
<div class="formText">
<input type="radio" name="txtSpace" value="RJ" checked="checked"
/>Space 1.
<br />
<input type="radio" name="txtSpace" value="SM" />Space 2.
<br />
</div>
<h3>Output:</h3>
<div id="output"></div>
like suppose i want to make the formula like this..
IF 100 IS SELECTED AND Space 1. IS SELECTED
then the formula shall go like this hidden value of (name="txtSpace" value="RJ") + hidden value of (name="txtNumber" value="100")
can it be done? and if yes,, how?