title: How to display different messages when clicking on two different radio button in javascript?
body: <p>I have two radio buttons as shown below :</p>
  
  <pre><code>&lt;input type="radio" name="country" value="India" class="website"&gt;India
  &lt;input type="radio" name="country" value="UAE" class="website"&gt;UAE
  </code></pre>
  
  <p>I have written the jquery for this :</p>
  
  <pre><code> $("input[type='radio']").click(function () {
          var selection=$(this).val();
          alert("Radio button selection changed. Selected: "+selection);
      });
  </code></pre>
  
  <p>But this is only working when the first radio button is clicked. It wont work when the second radio button is clicked.</p>
  
  <p>Can anyone help me out in this ?</p>