JQuery UI Tab and Cookies

JQuery UI Tab and Cookies

This works.
 
$(
function (){

// Tabs

$(

'#tabs' ).tabs();

});
 
but when I do this I get form stacking. How do I fix?
 
 
$( function (){

// Tabs

$(

'#tabs' ).tabs(

{

cookie: {

// store cookie for a day, without, it would be a session cookie

expires: 1

}

}

);

});