Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery functions Re: jQuery functions

#79315
jamygolden
Member

Try this:

Code:
jQuery.fn.exampleName= function() {
return this.width(‘img’, this).width());
};

$(document).ready(function(){
$(“div”).exampleName();
});