Skip to content

Instantly share code, notes, and snippets.

@linuxsable
Created November 5, 2010 18:54
Show Gist options
  • Select an option

  • Save linuxsable/664601 to your computer and use it in GitHub Desktop.

Select an option

Save linuxsable/664601 to your computer and use it in GitHub Desktop.
(function($) {
$.fn.opacityCheck = function(key) {
if (key == ':visible') {
if (this.css('opacity') == 1) {
return true;
}
return false;
}
else if (key == ':invisible') {
if (this.css('opacity') == 0) {
return true;
}
return false;
}
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment