On Validation error of columns I would like to set a custom div with an error message. I currently have the working code to populate the div however I do not know how to make the IF statement to show the message only when column validation fails.
<script type="text/javascript">
$(document).ready(function(){
var div = document.getElementById('errorMessage');
div.innerHTML = div.innerHTML + 'Error Message goes here';
});
</script>
I assume it would be a check against the html form-validation class however I haven't managed to get that to work.