문제

I have built an app that validates forms client side with html5. I'm looking for the javascript-implementation that best emulates this behavior in older browsers.

Important qualities are:

  • As similar behavior as possible.
  • As little modification of css/html as possible
  • As little functionality besides field-validation built in as possible
도움이 되었습니까?

해결책

CSS tricks has a nice article on the fallback process here: http://css-tricks.com/progressively-enhancing-html5-forms/

They also suggest a project such as this http://code.google.com/p/webforms2/

Which includes some of the HTML5 form validation goodness

Just remember to always check server side too when it comes to validation :)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top