I have a form that IE 10 seems to being having fits with and for the life of me I can’t find anything related to it anywhere on the web.
It has to do with a form field for a phone number … my validation for phone numbers looks like this (this is part of a larger function that loops through all the form elements):
if (strpos($(this).attr('id'), 'phone') !== false && (jQuery.trim($(this).val()).length != 0 && jQuery.trim($(this).val()).length < 10)) {
errors = true;
$(this).prev().text('Please enter area code and phone number').css({ 'color' : 'red', 'font-weight' : 'bold' });
$(this).css('background-color', '#fbf9c4');
}
Now this particular form IE throws a red border around the phone input even when the correct data is in it (note though that my ‘error messages’ are not showing, which means it passed the above block of code) and some form of bubble shows up (not from my code) that says ‘You must enter text with 10 characters or fewer characters’
Here’s is the source code for the element in question:
<p><label for='phone' class='label'>Phone Number *</label><input type='text' name='phone' id='phone' maxlength='12' size='50' value="" class='required next' title='Phone Number *' />
Here’s a visual:
I don’t have IE 10 on anything at this point, if someone wants to try it for themselves you can PM me as the site is locked down with a username and password while we are developing it.