Skip to content

Instantly share code, notes, and snippets.

@charleehu
Created December 21, 2011 08:10
Show Gist options
  • Save charleehu/1505166 to your computer and use it in GitHub Desktop.
Save charleehu/1505166 to your computer and use it in GitHub Desktop.
jQuery extends
(function($) {
$.fn.visibility = function(status) {
this.css('visibility',status);
return this;
}
})(jQuery)
$('#someElement').visibility('visible')
$('#someElement').visibility('hidden')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment