I'm trying to open a Jquery UI dialog box after the user clicks on an anchor link.
I'm using Jquery 1.5.2 and UI 1.8.11 and am getting no error messages. I am following the example on this page: jquery ui dialog documentation
My JS:
$(document).ready(function() {
$('#payTypeOptions').dialog({
autoOpen: false,
height:600,
width: 600,
modal: true
});
$('#showPayTypeOptions').click(function(){
$('#payTypeOptions').dialog('open');
//If I put an alert() here, the alert shows
});
});
The HTML:
<a id="showPayTypeOptions">Do something</a>
<div id="payTypeOptions">
<p>Content</p>
</div>
Thanks.
Edit: There was nothing wrong with the code. It was user error in the import process - doh!