Search code examples
javascriptjqueryjquery-uijquery-mask

jquery mask input s not working


Can anyone help for this?

    $("#mainForm").validate({
    rules: {
        mytxtName:{required:true},
        txtPhone:{required:true}
    }               
});
    $("#txtPhoneID").mask("999-999-9999");

http://jsfiddle.net/ssthil/RjE8s/3/


Solution

  • mask method is not part of jQuery itself, it is comes with plugin.

    Look at my code: http://jsfiddle.net/RjE8s/4/