.fn.extend
Overriding default jQuery functions
HTML
<div>
</div>
JavaScript
$.fn.extend({
html: function(str) {
return this.text(str + ':custom');
}
});
$('div').html('bar');
<div>
</div>
$.fn.extend({
html: function(str) {
return this.text(str + ':custom');
}
});
$('div').html('bar');