jquery.inputmask unmasking empty email
I am using RobinHerbots/jquery.inputmask library. Library returning _@_._ for empty value. You can try demo. Here is my code. HTML: <input type="text" id="email" autocomplete="off"> <button type="button" id="unmask">Unmask</button><br> Value: '<span id="val"></span>'<br> Unmasked value: '<span id="unmasked"></span>' JS: $("#email").inputmask('email'); $("#email").inputmask({'autoUnmask': true}); $("#unmask").click(function(){ $("#val").text($("#email").val()); $("#unmasked").text($("#email").inputmask('unmaskedvalue')); });
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.