how to write jquery inside javascript function code example
Example: how to create jquery function
(function( $ ){
$.fn.myfunction = function() {
alert('hello world');
return this;
};
})( jQuery );
$('#my_div').myfunction();
(function( $ ){
$.fn.myfunction = function() {
alert('hello world');
return this;
};
})( jQuery );
$('#my_div').myfunction();