I have got a task to do Jquery tab. On load the all tabs are disabled only the first tab is enabled also its radio button must be selected. If change the radio button then tab also have to change. My page is
<script>
$(function() {
$("#tabs").tabs();
$("#tabs").tabs("option", {
"selected": 2,
"disabled": [1,2,3]
});
$( "input[type=submit], a, button" )
.button()
.click(function( event ) {
event.preventDefault();
});
$('#enable1').click( function(){
alert("a");
$( "#tabs-2" ).tabs({ enabled: true });
});
});
</script>
<li><a href="#tabs-1">klj</a> </li>
<li><a href="#tabs-2">jljl</a></li>
<li><a href="#tabs-3">Sachin</a></li>
<li><a href="#tabs-4">Ganguly</a></li>
</ul>
<div id="tabs-1">
<p>jkljl</p>
</div>
<div id="tabs-2">
<p>jkljl</p>
</div>
<div id="tabs-3">
<p>Sachin</p>
</div>
<div id="tabs-4">
<p>Ganguly</p>
</div>
</div>
<input type="radio" name="tabs-1" value="tabs-1">tabs-1
<input type="radio" name="tabs-2" value="tabs-2">tabs-2
<input type="radio" name="tabs-3" value="tabs-3">tabs-3
<input type="radio" name="tabs-4" value="tabs-4">tabs-4<br>
</body>
</html>
How to do this?