Forum Discussion
Parshant
11 years agoBoss
Hi Jordan
You can use below jquery code to prevent from submition of form;
Replace "#confirmForm" with class or id of the submit button.
Replace "#FieldName" with class or id of the field you are using.
$('#confirmForm').submit(function(ev){
var CharCount = $('#FieldName').val().length;
if (CharCount > 50) {
return false;
}
});
Related Content
- 11 years ago
- 10 years ago
- 14 years ago
- 12 years ago
- 11 years ago