Good day everyone! There was such a question: how can I call a hint in jQuery. But the bottom line is that the prompt itself is displayed in the jQuery script. Here is my script:
$(document).ready(function(){ $("#resultados").hide(); $('#buscar_usuario').autocomplete( { source: 'ajax.php', select: function(event , ui){ $('#resultados').slideUp('slow', function(){ $('#resultados').html( '<h2>Информация о пользователе<h2>' + '<img src="' + ui.item.foto + '"/>' + '<strong>Пользователь: </strong>' + ui.item.value + '<br/>' + '<strong>Количество предметов: </strong>' +'<a href=# class="tooltip">' + ui.item.descripcion +'<span class="tip">Проверка</span> '+'</a>' ); }); $('#resultados').slideDown('slow'); } }); });
I need a hint to be displayed on this line:
<a href=# class="tooltip">' + ui.item.descripcion +'<span class="tip">Проверка</span> '+'</a>'
How can I solve this problem?