Jquery validation error placement (radio buttons)

前端 未结 4 1335
有刺的猬
有刺的猬 2021-02-05 11:19

I\'m trying to use the Jquery validation plugin to validate my form. I have error messages appearing to the right of most of my input elements, but radio buttons are giving me n

4条回答
  •  遇见更好的自我
    2021-02-05 12:07

    Dont even need JS errorPlacement to do it... if just place a label for the radio buttons also works like so:

    
    
    
    
    

    Jquery Validation plugin will automatically unhide it and display the "required" messsage.

提交回复
热议问题