{"action":"closed","issue":{"url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/issues/821","labels_url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/issues/821/labels{/name}","comments_url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/issues/821/comments","events_url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/issues/821/events","html_url":"https://github.com/RobinHerbots/jquery.inputmask/issues/821","id":57643039,"number":821,"title":"masking a password field","user":{"login":"haldiggs","id":1693010,"avatar_url":"https://avatars.githubusercontent.com/u/1693010?v=3","gravatar_id":"","url":"https://api.github.com/users/haldiggs","html_url":"https://github.com/haldiggs","followers_url":"https://api.github.com/users/haldiggs/followers","following_url":"https://api.github.com/users/haldiggs/following{/other_user}","gists_url":"https://api.github.com/users/haldiggs/gists{/gist_id}","starred_url":"https://api.github.com/users/haldiggs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haldiggs/subscriptions","organizations_url":"https://api.github.com/users/haldiggs/orgs","repos_url":"https://api.github.com/users/haldiggs/repos","events_url":"https://api.github.com/users/haldiggs/events{/privacy}","received_events_url":"https://api.github.com/users/haldiggs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/labels/Main","name":"Main","color":"d7e102"}],"state":"closed","locked":false,"assignee":{"login":"RobinHerbots","id":318447,"avatar_url":"https://avatars.githubusercontent.com/u/318447?v=3","gravatar_id":"","url":"https://api.github.com/users/RobinHerbots","html_url":"https://github.com/RobinHerbots","followers_url":"https://api.github.com/users/RobinHerbots/followers","following_url":"https://api.github.com/users/RobinHerbots/following{/other_user}","gists_url":"https://api.github.com/users/RobinHerbots/gists{/gist_id}","starred_url":"https://api.github.com/users/RobinHerbots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobinHerbots/subscriptions","organizations_url":"https://api.github.com/users/RobinHerbots/orgs","repos_url":"https://api.github.com/users/RobinHerbots/repos","events_url":"https://api.github.com/users/RobinHerbots/events{/privacy}","received_events_url":"https://api.github.com/users/RobinHerbots/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/milestones/17","html_url":"https://github.com/RobinHerbots/jquery.inputmask/milestones/3.5","labels_url":"https://api.github.com/repos/RobinHerbots/jquery.inputmask/milestones/17/labels","id":857136,"number":17,"title":"3.5","description":"Whatever in the future","creator":{"login":"RobinHerbots","id":318447,"avatar_url":"https://avatars.githubusercontent.com/u/318447?v=3","gravatar_id":"","url":"https://api.github.com/users/RobinHerbots","html_url":"https://github.com/RobinHerbots","followers_url":"https://api.github.com/users/RobinHerbots/followers","following_url":"https://api.github.com/users/RobinHerbots/following{/other_user}","gists_url":"https://api.github.com/users/RobinHerbots/gists{/gist_id}","starred_url":"https://api.github.com/users/RobinHerbots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobinHerbots/subscriptions","organizations_url":"https://api.github.com/users/RobinHerbots/orgs","repos_url":"https://api.github.com/users/RobinHerbots/repos","events_url":"https://api.github.com/users/RobinHerbots/events{/privacy}","received_events_url":"https://api.github.com/users/RobinHerbots/received_events","type":"User","site_admin":false},"open_issues":67,"closed_issues":34,"state":"open","created_at":"2014-11-07T09:38:21Z","updated_at":"2015-04-09T07:06:08Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-02-13T19:33:03Z","updated_at":"2015-04-09T07:06:08Z","closed_at":"2015-04-09T07:06:08Z","body":"I have a requirement that has be changing a field type to 'password' when a user is entering a social security number.\r\n\r\nthe mask is \r\n\r\n\tregexp = /^\\d{3}-\\d{2}-\\d{4}$/;\r\n\tmessage = \"match pattern xxx-xx-xxxx\";\r\n\t$(\"#MultiPurposeId\").inputmask(\"999-99-9999\", { placeholder: \" \" });\r\nThis may not be possible but when I change the field type to password I lose the mask\r\n\r\n\t$('#MultiPurposeId').attr('type', 'password');\r\nis there anyway to keep the mask so the password field still has to hit the regex at least?\r\n\r\nbetter yet... maybe what I am looking for is simply to mask the users input but still receive the correct value on submit... this looks like it can do that\r\n"}}