document.getElementById("btnsumbit").addEventListener("click",function(){ $('#popup').modal('hide'); $.post("?act=save",$(this.form).serialize()).done(function(response){ console.log(response); if(response.split("<<<")[1]==" reload ")location.reload(true); }); event.preventDefault(); }); fmtarget.querySelectorAll('input[type=text]').forEach(function(el){ console.log(el.name); el.value=''; });
Selasa, 10 November 2020
Popup Submit
Langganan:
Posting Komentar (Atom)
-
Tutorial ini menjelaskan bagaimana menghapus blog di blogger. Pertama, anda harus login ke blogger.com, kemudian pilih blog yang hendak anda...
-
a < script > /** * sends a request to the specified url from a form. this will change the window location. * @param {string} path th...
-
function popup ( idbrg ){ $.ajax({ type : 'POST', url : '?plain=app/barang-harga.php...
Tidak ada komentar:
Posting Komentar