<script type="text/javascript" src="/assets/mask/jquery.mask.min.js"></script>

$(document)
  .ready(
    function() {

          $('.phone_with_ddd').mask('(00) 0000-0000');

          $('.cep').mask('00.000-000');

          $('.ddmmyyyy').mask('00/00/0000');
        $('.mmyyyy').mask('00/0000');
        $('.cpf').mask('00000000000');

      ....

        });

 

<td><input id="ebanx_credit_phone" type="text" placeholder="(00) 0000-0000" class="phone_with_ddd" maxlength="14" autocomplete="off" name="ebanx_credit_phone"></td>

 

posted on 2014-08-22 13:34  c碰  阅读(819)  评论(0编辑  收藏  举报