I am using the jQuery.validator.addClassRules method to validate my input fields. How do I allow my textbox to accept only comma seperated values and show the default message if incorrect.
<input type="text" class="form-control numberValidation" />
<!-- JS Plugins Init. -->
<script>
$(document).on('ready',
function () {
$("#signupform").validate({
errorClass: 'invalid-input'
});
jQuery.validator.addClassRules('numberValidation',
{
number: true
});
});
</script>