How to use the “required” attribute with a “radio” input field

前端 未结 4 1908
情深已故
情深已故 2020-11-22 12:57

I am just wondering how to use the new HTML5 input attribute \"required\" in the right way on radio buttons. Does every radio button field need the attribute like below or i

4条回答
  •  温柔的废话
    2020-11-22 13:29

    I had to use required="required" along with the same name and type, and then validation worked fine.

    
    
    
    
     
    

提交回复
热议问题