I'm looking to create a popup div with an elastic effect similar to jQuery's fancybox. I've tried using the following code, but it doesn't seem to work...
Here is the HTML:
<a href="#" id="LoginAnchorLink">ClickME</a>
<div id="dialog" class="Popup" style="display:none;">
content of the div have to be popup
</div>
And the CSS:
.Popup {
position: fixed;
background-color: #ffffff;
width: 100px;
height:100px;
}
Lastly, the jQuery:
jQuery(document).ready(function () {
$("#LoginAnchorLink").click(function () {
$("#dialog").fancybox();
});
});
Could someone please point out if I am missing something or if there is an error in my code?