Skip to content

Instantly share code, notes, and snippets.

@AleeRojas
Created February 18, 2016 16:21
Show Gist options
  • Save AleeRojas/0de08c4ee385209ee6cb to your computer and use it in GitHub Desktop.
Save AleeRojas/0de08c4ee385209ee6cb to your computer and use it in GitHub Desktop.
Ajax y Modal Semantic-UI
$('body').on('click', '.ajax-modal', function() {
$('.ui.modal')
.modal({
onShow: function(callback) {
callback = $.isFunction(callback) ? callback : function(){};
var $content = $(this).find('.content');
$.get("contentData.php", function(data) {
$content.html(data);
});
}
}).modal('show')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment