How to configure a Textbox to Take SSN number as a input in the format 123-45-6789

I just wanted to configure a Textbox to Take SSN number as a input in the format 123-45-6789. And also I wanted to be greyed out(###-##-####) once I moved out my focus.

  Discussion posts and replies are publicly visible