I have the following code:
$(document).on('focus', '.albaran', function () {
console.log($(this).data('error'));
if ($(this).data('error') == 1) {
$(this).tooltip({ 'trigger': 'focus', 'title': 'El campo no puede estar vacio' });
} else if ($(this).data('error') == 2) {
$(this).tooltip({ 'trigger': 'focus', 'title': 'El campo no es numerico' });
}
);
I would like to do this for other classes, Something like that
$(document).on('focus', '.albaran .Pais .Ruta', function ()
I do it that way but it does not work for me, is there a way to do it?