I try to load the page links in popup... after adding this script the page load in the bottom of the page ... how to open it in popup ???
$('a[rel="ajax:jmodal"]').click(function(event) {
$.ajax({
url: $(this).attr('href'),
success: function(newHTML, textStatus, jqXHR) {
$(newHTML).appendTo('body').jmodal();
},
error: function(jqXHR, textStatus, errorThrown) {
// Handle AJAX errors
}
// More AJAX customization goes here.
});
return false;
});
Why don't you try with with Bootstrap dialog. See Link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.