PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
 | Book your hotel early for a discount!
You can reap the rewards with great discounts at participating Pullman, M Gallery, Grand Mercure, Novotel, Mercure, ibis and Formule 1 hotels.  | From our sponsors | | |
[ask]gan, gimana cara handling ajax post ketika da... Oct 8th 2013, 12:20, by Rere Saputra | [ask]gan, gimana cara handling ajax post ketika data belum diisi? jadi ketika data belum diisi ajax post tidak berfungsi mohon pencerahan gan
$(document).ready(function() { $("#frm").validate({ rules: { limit : { digits: true, } }, messages: { limit: { required: "harus diisi", digits : "harus angka" } } }); $().ajaxStart(function() { $('#loading').show(); $('#result').hide(); }).ajaxStop(function() { $('#loading').hide(); $('#result').fadeIn('slow'); });
$('#frm').submit(function() { $.ajax({ type: 'POST', url: $(this).attr('action'), data: $(this).serialize(), success: function(data) { $('#result').html(data); } }) return false; });
}) </script> |
| | jquery validate |
| | bukan itu yg ane maksud gan :3 handling ajax postnya ketika inputan belum diisi, yg itu ajax postnya tetap jalan kalo inputan tidak terisi | | |
|
Tidak ada komentar:
Posting Komentar