Remove literals from input mask after form submit?

后端 未结 7 1063
轮回少年
轮回少年 2020-12-31 03:17

this question has already been asked but the solutions where not clear.

Im using Josh Bush\'s MaskedInput plugin for jQuery

What im trying to achieve is:

7条回答
  •  萌比男神i
    2020-12-31 04:08

    I think you want to use unmask

    $("#myForm").submit(function() {
      $("#txtPhone").unmask();
    });
    

提交回复
热议问题