title: How to mask input with Jquery in MVC5?
body: <p>Last days, I try to develop MVC web application in .Net Framework. I try to mask input on form .
  I have download Jquery masked input and I wrote that code in my view section.</p>
  <pre><code>@section Scripts{
      &lt;script type=&quot;text/javascript&quot; src=&quot;/Scripts/jquery.maskedinput.min.js&quot;&gt;&lt;/script&gt;
      &lt;script type=&quot;text/javascript&quot; src=&quot;/Scripts/jquery-1.8.3.min.js&quot;  charset=&quot;utf-8&quot;&gt;&lt;/script&gt;
  
      &lt;script type=&quot;text/javascript&quot;&gt;
          $(function () {
              $(&quot;#phone&quot;).mask(&quot;(999) 999-9999&quot;);
          });
      &lt;/script&gt;
  }
  </code></pre>
  <p>I try to mask textbox like that :</p>
  <pre><code>@Html.TextBoxFor(model =&gt; model.PhoneNumber, new { htmlAttributes = new { @class = &quot;form-control&quot; ,@id=&quot;phone&quot;} })
  </code></pre>
  <p>But It does not work. Where is the wrong ?</p>
  <p>I try few ways to mask it but I did not succeed.
  Could any one help me?</p>