I have a dynamic form and I need that a group of checkboxes show a tooltip when mouse hover.
I was looking for a clean tooltip code just using jquery and I found css resources that could resolve my problem.
How can I display a tooltip message on hover using jQuery?
Here, I have chosen the code from the answer of @being_ethereal for the tooltip, but it doesnt work with an specific configuration.
$('.geraBloqueio').hover(function(){
$(this).css('cursor','pointer').attr('title', 'Esta resposta gera bloqueio?');
}, function() {
$(this).css('cursor','auto');
});
It needs to interact with some appended HTML, after a button click.
function myfunction(){
$('#cont').append('<input class="geraBloqueio" type="checkbox" disabled />');
}
What am I doing wrong?