{"action":"closed","issue":{"url":"https://api.github.com/repos/digitalBush/jquery.maskedinput/issues/297","labels_url":"https://api.github.com/repos/digitalBush/jquery.maskedinput/issues/297/labels{/name}","comments_url":"https://api.github.com/repos/digitalBush/jquery.maskedinput/issues/297/comments","events_url":"https://api.github.com/repos/digitalBush/jquery.maskedinput/issues/297/events","html_url":"https://github.com/digitalBush/jquery.maskedinput/issues/297","id":57131358,"number":297,"title":"dinamically change mask","user":{"login":"sirg2003","id":1253715,"avatar_url":"https://avatars.githubusercontent.com/u/1253715?v=3","gravatar_id":"","url":"https://api.github.com/users/sirg2003","html_url":"https://github.com/sirg2003","followers_url":"https://api.github.com/users/sirg2003/followers","following_url":"https://api.github.com/users/sirg2003/following{/other_user}","gists_url":"https://api.github.com/users/sirg2003/gists{/gist_id}","starred_url":"https://api.github.com/users/sirg2003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirg2003/subscriptions","organizations_url":"https://api.github.com/users/sirg2003/orgs","repos_url":"https://api.github.com/users/sirg2003/repos","events_url":"https://api.github.com/users/sirg2003/events{/privacy}","received_events_url":"https://api.github.com/users/sirg2003/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-10T05:05:12Z","updated_at":"2015-06-19T02:18:23Z","closed_at":"2015-06-19T02:18:23Z","body":"Hello. I have input (for phone) like that: \r\n$(\"#phone\").mask(\"+9 (999) 999-99-99\");\r\nbut i need option to dinamically change mask. How can i do if user print 11 symbols then using this mask:\r\nmask(\"+9 (999) 999-99-99\");\r\nbut if user prints 12 symbols then mask changing to such mask:\r\nmask(\"+9 (9999) 999-99-99\");"}}