Skip to content

IE10: required fields error message takes precedence of number type validation #1318

Closed
@roryhardy

Description

@roryhardy

Environment:

  • jQuery 1.11.0
  • jQuery Validation 1.13.0
  • Windows 7
  • Internet Explorer 10

Minimum test case: http://jsfiddle.net/cvp41zk4/

In IE 10 I've found that a required number field will continue to display "This field is required." instead of "Please enter a valid number." if alpha characters are inserted instead of numeric characters. If I add numbers that exceed min/max rules then the required field error is replaced by the min/max error.

In the minimum test case follow these steps to reproduce:

  1. Click submit to trigger validation
  2. Type "aaa" in the field, notice that the message does not ask you to enter a number, but rather complains that it is required.

I've only observed this behavior in IE10. It seems to work as desired in other browsers including IE8 and IE9.

capture

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions