If your purpose is to display a custom invalid email message. you only need to add data-val-email="Custom messege" in input field. Here is the updated form.It works with jquery.validate.js
and jquery.validate.unobtrusive.js
.
<form id="myForm">
<input id="email" type="email" name="email" data-val="true" data-val-required="Email cannot be empty" data-val-email="Please add valid email"> <span style="font-size: smaller; color: red" data-valmsg-for="email" data-valmsg-replace="true"></span>
<button id="btnconfirm" class="button" type="submit">Confirm</button>