Note that there are some explanatory texts on larger screens.

plurals
  1. POmathematical calculation using jquery
    primarykey
    data
    text
    <p>this question is not similar to <a href="https://stackoverflow.com/questions/10245216/mathematical-calculations-using-jquery-ajax">Mathematical calculations using jQuery/Ajax</a></p> <p>so please downvoters.</p> <p>i use two sets of radio buttons This fiddle i found shows the exact what i want <a href="http://jsfiddle.net/8FXFE/6/" rel="nofollow noreferrer">http://jsfiddle.net/8FXFE/6/</a></p> <p>can i add another hidden sort of value to those buttons that i can use in any calculation?</p> <p>HTML</p> <pre><code>&lt;div class="textForm"&gt; &lt;input type="radio" name="txtNumber" value="100" checked="checked" /&gt;100 &lt;input type="radio" name="txtNumber" value="200" /&gt;200 &lt;input type="radio" name="txtNumber" value="500" /&gt;500 &lt;input type="radio" name="txtNumber" value="1000" /&gt;1000 &lt;input type="radio" name="txtNumber" value="10000" /&gt;10000 &lt;input type="radio" name="txtNumber" value="other" /&gt;other &lt;input type="text" name="other_field" id="other_field" onblur="checktext(this);" /&gt; &lt;/div&gt; &lt;div class="formText"&gt; &lt;input type="radio" name="txtSpace" value="RJ" checked="checked" /&gt;Space 1. &lt;br /&gt; &lt;input type="radio" name="txtSpace" value="SM" /&gt;Space 2. &lt;br /&gt; &lt;/div&gt; &lt;h3&gt;Output:&lt;/h3&gt; &lt;div id="output"&gt;&lt;/div&gt; </code></pre> <p>like suppose i want to make the formula like this..</p> <p>IF 100 IS SELECTED AND Space 1. IS SELECTED</p> <p>then the formula shall go like this hidden value of (name="txtSpace" value="RJ") + hidden value of (name="txtNumber" value="100")</p> <p>can it be done? and if yes,, how?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload