If I understand correctly you want the email validation to run once the user has typed something and not be "red" when the page loads.
To do this you need to remove the required
and pattern
attribues so your input becomes:
<input data-bind='value: emailAddress' />
and to add email validation to your model so your observable becomes:
this.emailAddress = ko.observable().extend({ // custom message
required: {
message: 'Enter your email address.'
}, email:true
});
updated fiddle