Question
2
Replies
265
Views
Posted: February 3, 2017
Last activity: February 6, 2017
Closed
Determine if HTML has validation error on client
Hello,
Is there a way to determine with javascript or jquery if the client-side validation has determined that a required field has not been filled in? Meaning , if any or multiple fields have thrown a "Value cannot be blank" error on the client, or any client-side validation error for that matter?
Thank you.
Hello,
You can try below code snippet
For Example consider one text input field with property = .empId
For checking the property value is empty in jquery :
if($('#empId').val() == "") --- this will be true if the field is not filled.
I hope this will helps you.
Thanks & Regards,
Durga