22
rated 0 times
[
25]
[
3]
/ answers: 1 / hits: 15195
/ 9 Years ago, mon, december 28, 2015, 12:00:00
I have code like this :
$(#savedata).submit(function(e){
e.preventDefault();
$.ajax({
type : 'POST',
data: $(#savedata).serialize(),
url : <?php echo site_url('ppdb/simpan_data/'.$jenjang);?>,
success : function(data){
window.location.reload();
$('#cekulang').modal('show');
}
});
return false;
});
I want to open the modal after page done refreshing. but i got the modal open first then the page refreshing with that code.
Help is appreciated.
More From » ajax