Skip to content Skip to sidebar Skip to footer

Jquery Live Preview Plugin On Click

I'm experimenting with jquery live preview plugin wich shows preview of websites on hover in tooltip. You can check out the plug in here: https://github.com/alanphoon/jquery-live-p

Solution 1:

Is this what you are looking for

$(document).ready(function() {
    $(".livepreview").livePreview({
        viewWidth: 400,  
        viewHeight: 300,

    });

    $("#btn").click(function(){
        $("#link").trigger("mouseenter");
    });
});

FIDDLE

Solution 2:

Use .trigger('mouseover');

$('.clickpreview').on('click', function (e) {
    $('.livepreview').trigger('mouseover');
});

DEMO

Post a Comment for "Jquery Live Preview Plugin On Click"