Skip to content Skip to sidebar Skip to footer

Tooltipster Plugin Not Firing Jquery Function When Link In In The Tooltip Is Clicked

I am using a jquery plugin called Tooltipster ( http://calebjacob.com/tooltipster/) and I am insterting some HTML into the tip which contains an href. If I click the link the page

Solution 1:

When you set click handler for .udpate element, jquery has not known about elements with this class yet. This is why handler does not set in you example. Instead please use an other approach, that handles all clicks for the document and selects only addressed for .update elements.

$(function(){
    $(document).on('click', '.update', function(){
        alert('hello');
        return false;
    });    
});

http://jsfiddle.net/bCqyL/3/


Post a Comment for "Tooltipster Plugin Not Firing Jquery Function When Link In In The Tooltip Is Clicked"