html5 form validation modernizr safari

后端 未结 3 842
心在旅途
心在旅途 2021-01-05 12:19

this is the working example: http://jsfiddle.net/trustweb/sTSMW/

i notice an errore using safari 5.05

if i set a form as in an html5 page and i repleace th

3条回答
  •  有刺的猬
    2021-01-05 12:25

    This is how I solved the same problem. It uses Modernizr, yepnope, and jQuery.

        yepnope({
           test : Modernizr.inputtypes.email && Modernizr.input.required && 
                  Modernizr.input.placeholder && && !jQuery.browser.safari,
           nope : ['js/webforms_home.js']
        });
    

    jQuery Browser API

提交回复
热议问题