css - Set default focus tab in jQuery UI tabs -
i use #tabs ul li a:focus
in css , working perfectly. now, want first tab automatically focused everytime web opened (so user dont need click first).
i have tried selected
, active
. both of them working, not focused.
code example :
$( "#tabs" ).tabs({ active: 0 });
the code above activate first tab, not focused yet.
thanks :d
try this:
$('#tabs').tabs("option", "active", 1);
or
$('#tabs').tabs({active, 1});
Comments
Post a Comment