Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/04/2013, 08:00
Rosencrantz
 
Fecha de Ingreso: junio-2008
Ubicación: Colombia
Mensajes: 207
Antigüedad: 15 años, 10 meses
Puntos: 12
Respuesta: Problema con plugin jquery y varias llamadas

Te falto un parentesis en el $this deberia quedar $(this) ya con eso funciona, ya lo probe.


Código:
(function ($) {
    var $this;
    $.fn.plug = function () {
        this.each(function (e) {            
            $(this).on("keyup", function (e) {
                $(".suc").append("Se ha escrito en: " + $(this).attr("class") + "<br />")
            });
        })

    };
})(jQuery);
})(jQuery);