Skip to content

Instantly share code, notes, and snippets.

@mikedugan
Created November 7, 2013 14:37
Show Gist options
  • Select an option

  • Save mikedugan/7355584 to your computer and use it in GitHub Desktop.

Select an option

Save mikedugan/7355584 to your computer and use it in GitHub Desktop.
loads a modal dialog
function modal() {     var html = "./path/to/modalFile.html";     var div= $('a#modal'); //the empty container div in your doc for the modal dialog     feedback.click(function() {         $('#modDisplay').dialog({position: {my: 'right top', at:'center center', of: window}}).load(html);         return false; //prevent the page from navigating     });   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment