I am trying to get this dialog popup form to show up when this link is clicked but it does not work for me. I've been working on this for the past three hours and this is getting too frustrating for me.
Here's my HTML:
<a href="#" id="contactUs">Contact Us</a>
<div id="dialog" title="Contact form">
<p>appear now</p>
</div>
And here's my JavaScript, this is in an external file:
$("#contactUs").click(function() {
$("#dialog").dialog("open");
return false;
});
I've used these links, but to no avail for me:
Please let me know if have an ideas, much appreciated, thanks.
navBar
element that your code references to create the menu. – Sidsida