admin管理员组文章数量:1426112
I use input inputmask on my form input, this is code that make mask on my form
$('input[name="jumlah"]').inputmask("decimal", {
groupSeparator: ".",
autoGroup: true
});
then i need to get the value from the input with this way
var checkVal = $('input[name="jumlah"]').val();
i keep get mask value,
Ex: on the input field when input number i can see 33.333 value on my field. then i need retrieved only 33333
how to get unmask value from input?
I use input inputmask on my form input, this is code that make mask on my form
$('input[name="jumlah"]').inputmask("decimal", {
groupSeparator: ".",
autoGroup: true
});
then i need to get the value from the input with this way
var checkVal = $('input[name="jumlah"]').val();
i keep get mask value,
Ex: on the input field when input number i can see 33.333 value on my field. then i need retrieved only 33333
how to get unmask value from input?
Share Improve this question edited Jun 18, 2016 at 8:08 Soer.05 asked Jun 18, 2016 at 7:51 Soer.05Soer.05 331 silver badge5 bronze badges 01 Answer
Reset to default 3InputMask has a property that might help you: 'removeMaskOnSubmit'
Just set it as true
and you should be good.
Something like this:
Inputmask.extendDefaults({
'removeMaskOnSubmit': true
});
found here (external link)
本文标签: javascriptRetrieved unmasking value from inputmask masking valueStack Overflow
版权声明:本文标题:javascript - Retrieved unmasking value from inputmask masking value - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745445240a2658633.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论