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

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -