i have a problem when attemp put this Bootstrap "tooltip" into a conditional, the problem is that not show it. I show you my code:
$(document).ready(function () {
$("._diifem_").prop("disabled", true);
$('#wall').on('keyup', function () {
var textarea_value = $("#wall").val();
if (textarea_value.length > 5) {
$('._diifem_').prop({
disabled: false,
});
} else {
$('._diifem_').prop({
disabled: true
}).tooltip({
title: 'Hola',
trigger: "click"
});
}
})
});
The class "._diiefem" = Button that will be hidden. The ID "#wall" = textarea
what am I doing wrong? :(
Thanks everyone :3