jQuery Validation - How to display the default callout on errors?

前端 未结 3 1747
长情又很酷
长情又很酷 2021-01-16 16:30

If I create an input control like this:


And type letters in it, an error will be displayed in a popup-like co

3条回答
  •  無奈伤痛
    2021-01-16 17:16

    This is what you are talking is HTML5 feature use required attribute with your form element

    
    

    and it will show you default error message but if you want to show custom error message than use title attribute

    
    

    Check this URL for more information http://demosthenes.info/blog/848/Create-Custom-HTML5-Form-Error-Messages-with-the-Title-Attribute

    Hope it will answer your question

提交回复
热议问题