search

Home  >  Q&A  >  body text

html5 validation for symfony 2.1

Is it true that only html5 can directly use client-side verification?
What I mean is, if I don’t use the html5 validation control and I don’t use html5, am I unable to perform client-side validation?

迷茫迷茫2750 days ago658

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 16:47:35

    HTML5 control verification requires a browser that supports the HTML5 standard.

    UPDATE:

    Of course not. If you need custom form js verification, you can find a ready-made bundle, such as:

    https://github.com/Abhoryo/APYJsFormV...

    Or you can modify the form theme to add the js and css you need.

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-16 16:47:35

    This depends on whether the html tag you use for front-end verification needs to be supported by html5, such as this

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

    As mentioned above, you can use js to implement this function instead

    reply
    0
  • Cancelreply