Selecting the last tab

Selecting the last tab

With tabs, how can i select the last tab? 

$("#tabs").tabs('select',$tabs.tabs('length'));