HTML Hacks - Input validation - Required attribute in HTML Vs. Javascript setCustomValidity?

preview_player
Показать описание
In this video, I have explained about difference and useful between required attribute in HTML and setCustomValidity functionality in Javascript
Рекомендации по теме
Комментарии
Автор

Hi this looks great. But let me ask a question. Would you be able to use same validation if you had a 4 checkboxes and you would prompt user to select at least one before being able to submit form. To note that each checkbox has a different name and prompt should be in format of HTML5 prompt under last checkbox and not Java script "alert". Thanks for any suggestion

vvelan
Автор

sir agr hme validation lgana ho ki jesse hm agr mobile no. type kre to 10 digit se kam ho to error show kre or agr 10 digit se jada ho to bhi error show kre ese attributes ka name btaiye in html 5

rudrpandey
visit shbcf.ru