I am trying to mask the SSN input using the jquery mask plugin, however it doesn't seem to work with jQuery mobile. The code is here . Appreciate any help.
If this does not work, what are the alternatives?
The code for the link below is also copied:
Scripts:
jquery.mobile-1.0.1.min.css jquery-1.6.4.min.js jquery.mobile-1.0.1.min.js $("#ssnprimary").mask("999-99-9999");
HTML:
<div data-role="page" id="mainpage"> <div data-role="header"> <h1> My Test </h1> </div> <div data-role="content"> <div class="content-primary"> <form id="fmain" data-ajax="false"> <div data-role="none"> <label for="ssnprimary">SSN:</label> <input type="tel" name="ssnprimary" id="ssnprimary" value="" /> </div> </form> <br /> </div> </div> <div data-role="footer" data-theme="d"></div> </div>
source share