Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to create jquery function

(function( $ ){
   $.fn.myfunction = function() {
      alert('hello world');
      return this;
   }; 
})( jQuery );

$('#my_div').myfunction();
 
PREVIOUS NEXT
Tagged: #create #jquery #function
ADD COMMENT
Topic
Name
3+7 =