Wednesday, 9 December 2015

Define Function and Call the Function

jQuery(document).ready(function(){

var box =  jQuery('#data');

$.fn.FadeSlideToggle = function(){

jQuery(this).slideUp(); 

};
 
jQuery('button').on('click',function(){

box.FadeSlideToggle(); 

}); 

});

No comments:

Post a Comment