Getting this error in IE from this code,
Could not get the display property. Invalid argument.
Code,
[CODE]$(document).ready(function() {
// call the cookie class and set a cookie called viewState
$.cookie(“viewState”);
// create a variable and set it to the value of the cookie
var theState = $.cookie(“viewState”);
// toggle the view state of an panel in the form
$(“#hidesearch”).toggle(
function () {
$(“#example”).hide();
// set the cookie and variable to none when clicked again
$.cookie(“viewState”, “none”, { expires: 365 });
theState = “none”
},
function () {
$(“#example”).show();
// when clicked, set the cookie and variable to block
$.cookie(“viewState”, “block”, { expires: 365 });
theState = “block”
});
// update the hidden panels css to none, or block depending on the toggle event
$(“#example”).css(‘display’, theState);
});