title: how to check radio button based on function return value?
body: <p>I have radio buttons in a table and I am calling a function on onchange event of it.</p>
  
  <pre><code>@if(some condiotion)
  {
      &lt;td&gt;&lt;input type="radio"  onChange="launch('@data.getVersion()')"name="isDefault" value="default" checked="checked"&gt;&lt;/td&gt;
  }
  else
  {
      &lt;td&gt;&lt;input type="radio"  onChange="launch('@data.getVersion')" name="isDefault" value="default" &gt;&lt;/td&gt;
  }
  </code></pre>
  
  <p>My launch function can fail in certain conditions. In that case I dont want my radio button to get checked. </p>
  
  <p>How can I achieve this? tried some ways but could not do this.</p>
  
  <p>Thanks</p>