SoFunction
Updated on 2025-04-10

jquery submits element sample code with value not empty


//When executing the query, if the field of the form is empty, no submission will be made
$("#form1").submit(function(){
try {
$(this).find("*").each(function(){
var elem = $(this);
if (("name") != null&&("name") != "") {
if(()==""){
("name");
}
}
});
}catch(e){
alert(e);
}
return true;
});