I am having some trouble figuring out how to validate my textboxes using js. I have 10 textboxes, the user can fill out any number 1-10, but cant fill out 0. Here is the js th
$('input[type="text"], select, :input[type="date"], :input[type="email"], :input[type="radio"]').each(function () { if ($.trim($(this).val()) == '' ) { // your error message here isValid = false; } });