Hi,
would this be useful as part of the accordion?
jQuery(function($) {
var userpanel = $("#accordion");
var index = $.cookie("accordion");
var active;
if (index !== undefined) {
active = userpanel.find("h3:eq(" + index + ")");
}
userpanel.accordion({
header: "h3",
event: "hoverintent",
active: active,
change: function(event, ui) {
var index = $(this).find("h3").index ( ui.newHeader[0]
);
$.cookie("accordion", index);
}
});
});
Eg. something like this:
$("...").accordion({
cookie: true // or other options passed through to $.cookie
});
Jörn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---