Jasny Twitter Bootstrap implementation give an error on tooltip script-Collection of common programming errors
I have been implementing Jasny Twitter Bootstrap when I call validation for make a popover , an d it is giving me an error about a undefined var.
I am attaching my code in order you could help me with this issue
$('#ReferalAdminAddForm').validate({
rules: {
'data[Referal][CustomerTypeId]': {
required: true
},
'data[Referal][town_id]': {
required: true
},
'data[Referal][nit]': {
required: true,
minlength: 11,
maxlength: 11,
digits: true
},
'data[Referal][name]': {
required: true,
minlength: 2,
maxlength: 128
},
'data[Referal][address]': {
required: true
},
'data[Referal][phone]':{
required:false,
minlength: 6,
maxlength: 16
}
},
highlight: function(element) {
$(element).closest('.control-group').removeClass('success').addClass('error').popover('toggle');
},
success: function(element) {
element
.text('OK!').addClass('valid')
.closest('.control-group').removeClass('error').addClass('success');
}
});
Console give this messsage
TypeError: b is undefined
.../2,left:c.left-d};break;case"right":g={top:c.top+c.height/2-e/2,left:c.left+c.wi...
bootst....min.js (línea 7)
My javascript call are:
Originally posted 2013-11-15 09:07:47.