/    Sign up×
Community /Pin to ProfileBookmark

Getting Error Message In IE

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);

});[/CODE]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @jrolson spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...