Well, that's it, I'm trying to show a tooltip
in an input field and it does not show it to me, I do not know where I'm having the error.
//Javascript (JQuery)
$(function test()
{
var valor = $("#nombre").val();
if( valor == null || valor.length == 0) {
$("#nombre").tooltip({
content: "texto de prueba"
});
return false;
} else { return true;}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<input type="text" id="nombre" onclick="test();">
I'm sure it's silly but I can not visualize it.