estoy usando ColorPicker Plugin. que inicializa el plugin con el siguiente código:
$(".colorpic").ColorPicker({
color: '#0000ff',
onShow: function (colpkr) {
$(colpkr).fadeIn(500);
return false;
},
onHide: function (colpkr) {
$(colpkr).fadeOut(500);
return false;
},
onChange: function (hsb, hex, rgb) {
$(this).css('backgroundColor', '#' + hex); <= $(this) not working
}
});
Ahora mi problema es que no está funcionando $(this)
en onchange
evento. Ayudame por favor?
quizás usted necesita '' unirse a this' onChange'? – tkone
Es posible que el complemento no pase su contexto al método 'onChange'. Abra un problema :) – Terry