2 years ago

#73711

test-img

baxi

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.

jquery

tabs

jquery-ui-tabs

0 Answers

Your Answer

Accepted video resources