0

Is there any way that I can make the required property of forms work in ie 6+? I tried in chrome and firefox. It works fine. I don't wanna use any scripts but I think I have to. Please give me something that would be easy. html below won't work in ie:

<input type="text" name="name" required="required" />

1 Answer 1

1

Yes, there are many polyfills for HTML5 forms. Check out e.g. jQuery form shim. Test the alternatives in action before deciding between them, because the style of reporting errors (like required field missing) varies.

3
  • I tried jquery form shim, it has got some problems with ie. I don't know which polyfills should i use. Would you recommend one to me? My form has got date and time too
    – maestar
    Jan 26, 2013 at 11:06
  • Thanks, I found enough in polyfills
    – maestar
    Jan 26, 2013 at 11:11
  • @red-cannibal, I noticed that jQuery form shim does not do well with date input in IE, but it handles required even on IE 6. Jan 26, 2013 at 11:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.