i need to popup a div like the jquery fancybox with elastic effect i am using the below coding but it not works…
HTML:
<a href="#" id="LoginAnchorLink">ClickME</a>
<div id="dialog" class="Popup" style="display:none;">
content of the div have to be popup
</div>
CSS:
.Popup {
position: fixed;
background-color: #ffffff;
width: 100px;
height:100px;
}
jQuery:
jQuery(document).ready(function () {
$("#LoginAnchorLink").click(function () {
$("#dialog").fancybox();
});
});
Am I missing something or has something gone wrong?
After re-reading it, I decided to edit the post.
This should be more clear.
Don’t forget to attach the css and the javascript files for fancybox.
Your login form
Login link
jQuery