HTML:
AngularJS: $(document).ready(function() { var dlg=$('#addLocation').dialog({ title: 'Add Location', resizable: true, autoOpen:false, modal: true, hide: 'fade', width:600, height:500 }); $('#addLocationLink').click(function(e) { dlg.load('admin/addLocation.php'); e.preventDefault(); dlg.dialog('open'); }); });