Wijmo UI for the Web
cookie Option
wijmo.lightbox.wijlightbox Namespace > options type : cookie Option

Default value: null

Store the latest active index in a cookie. The cookie is then used to determine the initially active index

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  object
    returnsValue = $(".selector").wijlightbox("option", "cookie");
    
    // Set value
    var newValue; // Type:  object
    $(".selector").wijlightbox("option", "cookie", newValue);
        
});
var cookie : object;
Remarks
if the activeIndex option is not defined. This requires cookie plugin. The object needs to have key/value pairs of the form the cookie plugin expects as options. e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }
See Also

Reference

options type
wijlightbox jQuery Widget