<div id="my_tabs">
<ul>
<li><a href="#php">PHP</a></li>
<li><a href="#html">HTML</a></li>
<li><a href="#js">JavaScript</a></li>
<li><a href="#mysql">MySQL</a></li>
</ul>
<div id='php'>PHP is a server side scripting language ...........
</div>
<div id='html'>This is the set of tags which is understood by web browser......
</div>
<div id='mysql'>This is a database which stores records.....
</div>
</div>
<br>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r1' value='0' checked>Panel 0 </label>
</div>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r2' value='1' >Panel 1</label>
</div>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r3' value='2' >Panel 2</label>
</div>
<div class='radio-inline'>
<label><input type='radio' name='r1' id='r4' value='3' >Panel 3</label>
</div>
<script>
$(document).ready(function() {
////////////////
$( "#my_tabs" ).tabs({
heightStyle: "auto"
})
///Reding the default option active///////////
var p_active = $( "#my_tabs" ).tabs( "option", "active" );
$("#d1").html('Tab Selected : ' +p_active);
/////
$("input:radio[name=r1]").click(function() {
var sel = Number($("input[name=r1]:checked").val())
$( "#my_tabs" ).tabs( "option", "active", sel );
///Reading the option active//////
var p_active = $( "#my_tabs" ).tabs( "option", "active" );
$("#d1").html('Tab Selected : ' +p_active);
});
/////////
})
</script>