Jquery Validator- Add Method for nMobile
Jquery Validator- Add Method for nMobile
HTML
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.js"></script>
<form id="CHECKFORM" name="form_sample_1" id="form_sample_1">
<label for="MOBILE">MOBILE</label>
<br />
<input type="text" name="MOBILE" id="MOBILE" class="required checkValInt" />
<input type="submit" value="submit" />
</form>
<div id="log"></div>
CSS
#log{
width: 300px;
padding: 3px 6px;
border: 1px solid #eee;
border-radius:8px;
}
#mobile{
width: 300px;
padding: 5px 6px;
border: 1px solid #eee;
border-radius:4px;
}
JavaScript
jQuery(document).ready(function() {
FormValidation.init();
});