jQuery receiving value from a text field
<p>My <em>HTML</em> :</p>

<pre><code>&lt;div class="textForm"&gt;
&lt;input type="radio" name="txtNumber" value="10" checked="checked" /&gt;10
&lt;input type="radio" name="txtNumber" value="20" /&gt;20
&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>This is my <em>javascript</em> code</p>

<pre><code>$(document).ready(function () 
{
$("input[name='txtNumber'],input[name='txtSpace']").change(function () 
{
    console.log("changed");
    if ($("input[name='txtSpace']:checked").val() == 'RJ' &amp;&amp; $("input[name='txtNumber']:checked").val() == '10')
        $("#output").text("RJ, 10 = 20");
    else if ($("input[name='txtSpace']:checked").val() == 'RJ' &amp;&amp; $("input[name='txtNumber']:checked").val() == '20')
        $("#output").text("RJ, 20 = 40");
    else if ($("input[name='txtSpace']:checked").val() == 'RJ' &amp;&amp; $("input[name='txtNumber']:checked").val() == 'other') // HERE I M CONFUSED
WHAT SHALL BE THE CODE?
    else if ($("input[name='txtSpace']:checked").val() == 'SM' &amp;&amp; $("input[name='txtNumber']:checked").val() == '10')
        $("#output").text("SM, 10 = 5");
    else if ($("input[name='txtSpace']:checked").val() == 'SM' &amp;&amp; $("input[name='txtNumber']:checked").val() == '20')
        $("#output").text("SM, 20 = 10");
    else if ($("input[name='txtSpace']:checked").val() == 'SM' &amp;&amp; $("input[name='txtNumber']:checked").val() == 'other') // HERE AGAIN I M CONFUSED
        $("#output").text("SM , ???? = Dont know");
});
});
</code></pre>

<p>What I'm trying to achieve is to open up the "other_fields" on clicking the "other" radio button the "other_field". Now, I want to use the value from "other_field" (i.e. the user input) and use those numbers in my calculation.</p>
