Return to Snippet

Revision: 56927
at April 25, 2012 00:29 by vagrantradio


Initial Code
$("#PHONE1, #PHONE2, #FAX, #CELL").each(function() {
   $(this).mask("(999)999-9999", {
      completed : function () {
        $(this).val($(this).val().replace(/\D/g, "")).unmask();
      }
   });
});

Initial URL

                                

Initial Description
Removes anything that isn't a digit from input on complete.

Initial Title
jQuery Masked Input - Unmask Function

Initial Tags
replace

Initial Language
jQuery