user695663
user695663

Reputation: 12356

how to work with "Tabsselect" event jquery ui

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

Answers (1)

Pav
Pav

Reputation: 2328

Is this what you are after?

$('.tabs li').bind('click', function() {
  if($(this).attr('id') == 'first')
  {
    alert('First tab selected');
  }
});

Upvotes: 1

Related Questions