baxi
baxi

Reputation: 153

Jquery tab not showing first child selected

I'm not able to select the first child using jquery tabs.

 $( function() {
    $( "#twocoltabs" ).tabs();
    $( "#twocoltabs" ).tabs( "option", "selected", 0 );
    $( "#twocoltabs" ).tabs( "option", "disabled", [1] );
  });

Nothing is working

$( function() {
        $( "#twocoltabs" ).tabs();
});

Even this script shows the second child selected.

$('#twocoltabs li:first-child').addClass('active');

This only show the tab name selected not content and both of tab name are selected if I add this.

Upvotes: 0

Views: 47

Answers (0)

Related Questions