Reputation: 12356
i have two tabs tabfirst, tabsecond.
whenever i select a tab(first or second) i have to bind some actions to other tab. So how i can do that?
$("tabs").bind('tabsselect',function(){
if(Selected tab==first)
//ignore validations in tab 2
else
//ignore validations in tab 1
});
Thanks in advance
Upvotes: 1
Views: 1530
Reputation: 2328
Is this what you are after?
$('.tabs li').bind('click', function() {
if($(this).attr('id') == 'first')
{
alert('First tab selected');
}
});
Upvotes: 1