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}); 

read set default tab in jquery ui tabs


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -