Contoh Catatan Kode:
<script type = "text/javascript"> function start_sms_button (obj) {var count = 1; var sum = 30; var i = setInterval (function () {if (count> 10) {obj.attr ('disabled', false); obj.val ('Kirim kode verifikasi'); clearInterval (i);} else {obj.val ('tetap'+parseInt (jumlah - hitungan)+'kedua');} Count ++ ++,}; } $ (function () {// Kirim kode verifikasi $ ('#send_sms'). klik (fungsi () {var phone_obj = $ ('input [name = "phone"]'); var send_obj = $ ('input#send_sms'); var val = phone_obj.val (); if (if (if) {val) (iSm '); val = phone) (if (if) {if (if) {val); send_obj.attr ('Disabled', "Disabled"); // Restart tombol Kirim setelah 30 detik start_sms_button (send_obj); show_loading_body ();}, function () {show_loading_body (); salah ");}}} else {showmsg ('Nomor ponsel tidak dapat kosong');}});}); }); </script>