Demo of reading value of selected radio button on page load using JQuery

CSS

<style>
.lb{ 
 text-align:left; 
FONT-SIZE: 14px;
font-weight: normal; color: #4c4c4c;
font-family: Verdana;
position: relative; 
}
</style>

HTML


<form id='f1'>

<table>
<tr><td>
      <input type='radio' name='options' id='opt1' value='option1' > <label for='opt1' class='lb'>Option one </label>
</td></tr>
<tr><td>
      <input type='radio' name='options' id='opt2' value='option2' >  <label for='opt2' class='lb'>Option two </label>
</td></tr>

<tr><td>
      <input type='radio' name='options' id='opt3' value='option3' checked>  <label for='opt3' class='lb'>Option three </label>
</td></tr>
<tr><td>
      <input type='radio' name='options' id='opt4' value='option4' >  <label for='opt4' class='lb'>Option four</label>
</td></tr>

</table>


</form>
</div>
  <div class="col-md-4"><div id='t1' style="position:absolute;"></div></div>
</div>

jquery


<script>
$(document).ready(function() {
var radio_selected = $('input[name=options]:checked', '#f1').val()
$("#t1").css("background-color", "yellow");
$('#t1').html(radio_selected);
})
</script>