Ejemplo:
Código HTML:
**JQUERY**
$.fn.greenify = function() {
this.css( "color", "green" );
$(window).resize(function(){
this.css( "color", "red" );
});
};
***HTML***
$('div1').greenify();
$('div2').greenify();
gracias por adelantado..


