title: if value of span true radio button automatically checked
body: <p>i want to checkbox value checked when span text "True"
  the blow example work perfectly on radio button click then span value goes to "true" or "false".
  <strong>Code</strong></p>
  
  <pre><code>$('table').on('change', ':radio', function () {
      $(this).next('span').text('True').closest('td')
             .siblings().find('span').text('False');
  });
  </code></pre>
  
  <p><strong>Html</strong></p>
  
  <pre><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;table&gt;
  &lt;tr&gt;
  &lt;td&gt; &lt;input  type='radio' name='attandance' &gt;&lt;span&gt;False&lt;/span&gt;&lt;/td&gt;
  &lt;td&gt; &lt;input  type='radio' name='attandance' &gt;&lt;span&gt;False&lt;/span&gt;&lt;/td&gt;
  &lt;td&gt; &lt;input  type='radio' name='attandance' &gt;&lt;span&gt;False&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>i want if the span value true then radio button automatically checked .
  <a href="https://i.stack.imgur.com/p5oQ8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p5oQ8.jpg" alt="here is out put"></a></p>