Sorry for asking many questions, My doubt is:
<form id ="myform" onSubit="return validatefields()" >
all fields(for some of them I have same class, so need to validates all the elements having the same class)
function validatefields(){
$(".someclass").each(function(index) {
//some validation
});
}
I am not sure if this is the valid syntax. Can anyone help me with the syntax.