Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
How do i make check boxes and radio buttons compulsory using javascript?
3 ответов
+ 1
add required attribute in input tag
+ 1
But Mr.Calvin my question is to make it compulsory using javascript
+ 1
document.getElementById("idName").required = true