Something has puzzled me for few days now, how can i standardize input validation message in Internet explorer 11 and the code below works fine and the message is fine under chrome, firefox etc.
i have a field for email and i check it to make sure the email is in a specific way pattern matching this works fine and i have a submit button with the field. If this email field is empty it should display a message "please fill in field" under chrome,firefox but when i try it under I.E v11 this standard message is different , how can i force this message to be same in I.E V11..
<form method="post" action="web url to a page">
<p>
<label for="email">Email</label>
<input title="(Please enter your email address.)" required="required" name="email" type='email' pattern=".+(@hotmail.com)|.+(@gmail.co.uk)" required />
</p>
<input style="float: right;" type="submit" name="submit" value="Subscribe" />
</form>
</div>
firstly thanks for all the help i got, below is the code i used to sort the issue i had with the I.E 11 message output, see below..thanks singhy
function IsEmpty(){
if(document.forms['frm'].question.value == "")
{
alert("empty");
return false;
}
return true;
}
<form name="frm">
Question: <input name="question"/> <br />
<input id="insert" onclick="return IsEmpty();" type="submit" value="Add Question"/>
</form>
</div>