This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parameters ... | |
// Trigger: A click on a button with 'openModal' class | |
// Requires: modal-id as attribute on the button | |
// URL: fetched from the ajax-url attribute on the modal Content div | |
$(document).ready(function () { | |
// A function to run on the click event to open modal, and fetch form via GET AJAX request | |
$('.openModal').on('click', function () { | |
var modalID = $(this).attr("modal-id"); |
NewerOlder