Home › Forums › JavaScript › jQuery functions › Re: jQuery functions
July 6, 2010 at 1:14 am
#79315
jamygolden
Member
Try this:
Code:
jQuery.fn.exampleName= function() {
return this.width(‘img’, this).width());
};
return this.width(‘img’, this).width());
};
$(document).ready(function(){
$(“div”).exampleName();
});