Remove literals from input mask after form submit?

后端 未结 7 1004
轮回少年
轮回少年 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条回答
  •  醉梦人生
    2020-12-31 04:08

    Assuming you have more than just one input being submitted, you could use:

    // unmask all inputs, before savinf;
    $(FormObj+" input[type=text]").each(function() {
        $(this).unmask();
    });
    

    where FormObj is your form object id, such as #form.

提交回复
热议问题