title: Language Change Using JSON
body: <p>I wrote a code where a JQuery Ajax will call the JSON and based on the radio buttons selected, the field values should change. The Code is as follows</p>
  
  <pre><code>   $(document).ready(function(){
     $.ajax({
      type: "POST",
      url: "test.json",
      data : "",
      dataType: "json",
      contentType : 'application/json',
      success: function (response) {
      console.log(response);
      try{
              console.log(response.lang.english.login);
              console.log(response.lang.arabic.login);
  
          }
          catch(Exception){
          }
      },
      error: function (jqXHR, exception) { CRDates
      alert("Error");
      }
  
  });
  </code></pre>
  
  <p>and the JSON file is as follows</p>
  
  <pre><code>  {"lang":
       {
  "english":{
      "login":"Login"
  },
  "arabic":{
      "login":"دخول"
             }}
            and the HTML is as follows
  </code></pre>
  
  <p>
         Choose a Language:       </p>
  
  <pre><code>  &lt;input type="radio" name="radio-choice" id="Language" value="Arabic"/&gt;
   &lt;label for="radio-choice-1"&gt;Arabic&lt;/label&gt;
  
      &lt;input type="radio" name="radio-choice" id="Language" value="Arabic"/&gt;
      &lt;label for="radio-choice-4"&gt;English&lt;/label&gt;
  
  &lt;div&gt;&lt;label for="declarationNumber" style="margin-left:30px"&gt;&lt;b&gt;Login&lt;/div&gt;&lt;br&gt;
  </code></pre>
  
  <p>Now I want to change the language based on the seleted radio button. I could'nt get the value of the radio button. For example if I check on arabic, it should change to arabic
  Please help</p>