Reputation: 3389
Do I need jQuery validation for simple input field required / not required checks if I am using the very latest IE, Firefox and Chrome browsers?
Is there any advantage to my using jQuery if I do not need older browser support with my ASP MVC3 application?
Upvotes: 0
Views: 817
Reputation: 2235
I recommend you both Jquery for old browser and for new browser use HTML5 input feature in order to support all browser of user end as you never know which browser they are using.
I personally use http://www.rapidexp.com/h5form/ it is compatible for all browser it detect wheather the browser support HTML5 or not.If not
SECOND METHOD
You can choose manually to detect browser support html5 using Modernizer
and apply input field as per need just download it and check tutorial for support of input fields
Upvotes: 1
Reputation: 201588
You need jQuery validation or some other JavaScript-driven checks to make all modern browsers do the checks. For example, IE 9 does not implement the required
attribute. Moreover, browsers that implement it have their own ways of indicating problems to users, and here they use the UI language of the browser, not necessarily with well-formulated texts. To have control over the error messages issued to users, you need JavaScript.
Upvotes: 1
Reputation: 7663
There is no need for jQuery validation if you are using the latest browsers which support the HTML 5 required
attribute.
Why include an extra script if the browser can handle it for you?
Upvotes: 0