question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Removing mask to submit form

See original GitHub issue

How can I do that?

I’m using this:

$('#field').maskMoney('destroy');

but this isn’t working.

I’m trying avoid some error on my rails server like this

is not a number

Is there any simple way to do that?

Thanks in advance.

Issue Analytics

  • State:closed
  • Created 11 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fernandodevcommented, Feb 24, 2016

basically I’ve done that:

  $("#form-id").submit(function(){
    var value = $('#input-value-id').maskMoney('unmasked')[0];
    $('#input-value-id').val(value);
  });
0reactions
plentzcommented, Jan 25, 2013

@fabianoalmeida good catch. In the last version I’m cleaning maskMoney’s namespace events before attaching it again, so the destroy action isn’t really necessary 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove literals from input mask after form submit?
Set removeMaskOnSubmit as true when you initialize the inputmask $("#txtPhone").inputmask({removeMaskOnSubmit: true});.
Read more >
How do I remove the mask before submitting the form? #659
I have this code: setPhoneNumber(event.target.value.replace(/[+()_-...
Read more >
'Masked Input Plugin' Remove mask on submit - jQuery Forum
Is it possible to remove the mask on submit? Im not sure how the mask works but im guessing that it will submit...
Read more >
Consent To Opt Out Of Face Mask Requirement Form Template
This Consent to Opt Out Of Face Mask Requirement Form will provide you with your students and employees consent that they've signed this...
Read more >
How to Put on and Remove a Face Mask
Remove a mask from the box and make sure there are no obvious tears or ... the Confidential Morbidity Report (CMR) form to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found