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/ | |
 | Refresh your vocabulary.
Learn a new word everyday by subscribing to Word of the Day. A great tool if you're studying for the GRE, GMAT or LSAT, or simply want to enhance your lexicon.  | From our sponsors | | |
[ask] gan tanya dong... ada referensi buat maslah... Sep 27th 2013, 11:09, by Fandi Al-Bantani | [ask] gan tanya dong...
ada referensi buat maslah ane ga..
Masalah: ane punya jquery twitter login, nah pas diclick submit jquery tersbut di disable..
mohon bantuan'a... |
| | Scriptnya ? |
| | klo ada script'a gpp minta tp klo ga ada referensi'a jga boleh... coz dari td nyari ga ketemu... |
| | Mksud saya script yang anda pakai di mari, nanti saya benarkan. |
| | <script type="text/javascript"> function checkEnableSubmit() { if (...) // some logic to determine if it is ok to go {document.getElementById("xx").disabled = false;} else // in case it was enabled and the user changed their mind {document.getElementById("xx").disabled = true;} } </script> ... <input type="button" id="xx" disabled ...> |
| | ni script form'a... ====================== <fieldset id="signin_menu"> <form method="post" id="signin" action="proses_change_pass.php" onSubmit="return myFunction();" name="formL"> <label for="password">Password Lama</label> <input id="password_lama" name="passL" value="" title="password_lama" tabindex="4" type="password"> <input type="hidden" name="email" value="<?php echo $email; ?>" /> </p> <p> <label for="password">Password Baru</label> <input id="password" name="passB" value="" title="password_baru" tabindex="5" type="password"> </p> <p class="remember"> <input id="signin_submit" value="Change Password" tabindex="6" type="submit" class="btn"> </p> </form> </fieldset> ===================================
ni javascript'a.. =================================== <script type="text/javascript"> function disableButton(){ $(".btn").each(function(){ $(this).attr("disabled", "disabled"); $(this).parents("formL").submit(); }) } </script> =================================== | | |
|
Tidak ada komentar:
Posting Komentar