I have a page with tabs setup and an asp button.
<div id="tabs" style="width:700; height:1000">
<ul>
<li><a href="#tabs-1">Referral</a></li>
<li><a href="#tabs-2">Details</a></li>
<li><a href="#tabs-3">Other</a></li>
</ul>
<div id="tabs-1"></div>
<div id="tabs-2"></div>
<div id="tabs-3"></div>
<asp:Button ID="btnMainSave" runat="server" Text="Save" />
</div>
When tabs-3 is selected, I want the button to be invisible but visible for the first two tabs. How can I achieve this using jquery baring in mind that I am a beginner. I have tried the following code but it hasn't worked.
<script type="text/javascript" >
$(function () {
$('#tabs, #tabs-3').tabs({
active: function (event, ui) {
$("#btnMainSave").hide();
}
});
});
</script>
Any help would be appreciated. Thanks
Rob