var bar = $("#Foo").attr('style'); if (bar == 'display:block;') {
Per this the above will not work in IE and I can attest that as much is true. The better jQuery to use is:
if ($("#Foo").css('display') == 'block') {
No comments:
Post a Comment