No products in the cart.
Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
-
darshanags
ParticipantTry:
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.
- AuthorPosts
Viewing 1 post (of 1 total)