Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: jQuery and fancybox with click event #10122
    blankdarshanags
    Participant

    Try:

    HTML:

    <input type="button" class="headerButtonNormal" id="test" value="Contact information"
    onmouseover=this.className="headerButtonHoover" onmouseout=this.className="headerButtonNormal">
    <div id="inline">Test fancybox</div>
    

    jQuery:

    $("#test").on("click", function () {
        showFormInformation();
    
        return false;
    });
    
    function showFormInformation() {
        $.fancybox({
            content: $("#inline").html()
        });
    }
    

    Fiddle here

    You might want to move your inline event handlers to be bound using jQuery since you are already using the library.

Viewing 1 post (of 1 total)