title: JQuery Uncaught ReferenceError: getRadioValue is not defined
body: <p>I am currently making an app with jQuery. I am trying to pass a value with the radio button by using localstorage and when I press Calculate, it should bring me to another html page whereby it would display the result. However, when I click on calculate, nothing has happened. When I checked for errors, I was told that in the fourth line of the first javascript, there is an uncaught reference error. I have added the codes below for convenience. Is there any solution for this? Help is greatly appreciated. Thank you in advance! </p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;fieldset data-role="controlgroup" data-type="horizontal"&gt;
       &lt;legend&gt;Converting&lt;/legend&gt;
       &lt;label for="Currency"&gt;Currency&lt;/label&gt;
       &lt;input type="radio" name="conversioning" id="Currency" value="Currency"&gt;
  
       &lt;label for="UnitofMeasurement"&gt;Unit of Measurement&lt;/label&gt;
       &lt;input type="radio" name="conversioning" id="UnitofMeasurement" value="Unit of Measurement" checked&gt;
  &lt;/fieldset&gt;
  
  &lt;div class="ui-block"&gt;&lt;input type="button" id="btnCalculate" value="Calculate" /&gt;&lt;/div&gt;
  </code></pre>
  
  <p>1st Javascript:</p>
  
  <pre><code>(function () {
     $(document).ready(function () {
     $("#btnCalculate").bind("click", function () {
        conversioning = getRadioValue("conversioning");
  
        localStorage.setItem("conversioningvalue", conversioning);
        window.location = "result.html";
        });
  
     });
  
  })();
  </code></pre>
  
  <p>2nd Javascript:</p>
  
  <pre><code>(function () {
     "use strict";
      $(document).ready(function () {
  
         var Conversioning = localStorage.getItem("Conversioningvalue");
        $("#lblConversioning").html(Conversioning);
  
     })
  
  })();
  </code></pre>
  
  <p>Output (HTML):</p>
  
  <pre><code>&lt;div data-role="main" class="ui-content"&gt;
      &lt;p&gt;You are currently converting&lt;div id="lblConversioning"&gt;&lt;/div&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>