You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
382 B
JavaScript

/**
* plugin element operation(visible and hidden)
* by Daniel Susanto - susantodaniel@gmail.com
*/
jQuery.fn.invisibleEl = function() {
if(this != null){
if(this.css('visibility') == 'visible')
this.css('visibility', 'hidden');
}
}
jQuery.fn.visibleEl = function() {
if(this != null){
if(this.css('visibility') == 'hidden')
this.css('visibility', 'visible');
}
}