How to validate radio button in magento?

早过忘川 提交于 2019-12-03 23:17:01
MeenakshiSundaram R

i got the answer,

use validate-one-required-by-name in the class name of the radio button.

Cheers

Edit:

or

use validate-one-required on the last radio/checkbox in the group

Thanks to Rahul Tripathi

Validation works, but to show error message you can't use any wrappers. Just

 <label> and <input>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!