title: How to select Radio button using JQuery
body: <p>I have created group of radio buttons using <code>&lt;c:forEach&gt;</code> tag. I have given ids also. </p>
  
  <p>On click of any radio button i do a ajax call. Once i come back to that page i want to re select that radio button.</p>
  
  <p>For this i assign back selected radio button ID to a hidden text box.</p>
  
  <p>My question is how to make radio button selected with this hidden text box value.</p>
  
  <p>I tried like </p>
  
  <pre><code>$('input[id="$("#myHiddenTextBoxId").val()"]').attr('checked', true);
  </code></pre>
  
  <p>But it is not working. Here myHiddenTextBoxId hold value of previously selected radio button.</p>