I wrote some small script, but since I did it with Google help I need some advice. After putting this into Chrome console, I'm getting this error:
SyntaxError: Unexpected identifier
Here is my code:
jQuery(document).ready(function(){
if jQuery("#colorbox").css("display", "none");) {
jQuery("#close-news").css("display", "none");
}
else {
jQuery("#close-news").css("display", "visible");
}
});
Any ideas what's wrong?