Monday, July 31, 2017

Bagaimana cara menggunakan mask input tanggal

Bagaimana cara menggunakan mask input Tanggal, NPWP, Nomer Telpon lebih mudah dilihat.

Hasil Mask Tanggal: 31/07/2017
Hasil Mask NPWP: 12-345-678-9-012-345

Berikut ini contoh scriptnya:

<!doctype html>
        <title>Masking Input -</title>
        <form action="#">
            Tanggal <input name="tgl" id="tgl" /> <br>
            NPWP <input name="npwp" id="npwp" /> <br>
            <input name="submit" type="submit" value="Simpan"/>

        <script type='text/javascript' src=''></script>
        <script type='text/javascript' src=''><script>

$("#phone").mask("(999) 999-9999");
        $tgl = $_REQUEST["tgl"];
        $npwp = $_REQUEST["npwp"];
        echo "<br><br>Hasil Mask Tanggal: ".$tgl;
        echo "<br>Hasil Mask NPWP: ".$npwp;


Hasil Mask Tanggal: 31/07/2017
Hasil Mask NPWP: 12-345-678-9-012-345

1 comment:

  1. If some one wants expert view concerning blogging and site-building then i advise him/her to pay a visit this weblog, Keep up the pleasant job. yahoo sign in


How to change label text using Javascript

1. Make the new ID for <label> 2. Loaded first the label element when script is executed.