On my partial page, I've included a placeholder like this:
<input name="name" type="text" placeholder="Enter name" ng-class="{'error':form.name.$invalid}" ng-model="Name" required />
I have also set up client side validation for the text box.
if (this.name.$error.regEx) {
$scope.errorList.push({
Message: "Invalid name"
});
}
To handle regular expressions, I created a directive. This code is functioning correctly in Chrome and IE 10. However, in IE 9, when I copy and paste the correct name into the text box, a client side validation error occurs (as it considers the placeholder text as well). Can anyone assist me in resolving this issue?