put the pic html in text copy to copy no change and send another code with the f
ID: 3603275 • Letter: P
Question
put the pic html in text copy to copy no change
and send another code with the fixes
so two codes one the original
and one fixes that you did
send html text
CIS 2309 Validate Form with HTML 2Deodat P. Sharma This progzam ceats fox maiing fields 5 Oetober 2, 2017 12 | function validateFo ) 14 15 16 20 alere("Name must be iiied our" 23 29 30 32 alert("Phone must be tilled out false lert("Enail mast be filled outF Mane: cinput type exte"nane ocbE/ 60 Phone: cinput type-cext" nase- "phoee cbes 6 B-saili cinput type-"text" nane-"email" cb/ 63 type."subm1 t" value-"Cliak to Submit" />Explanation / Answer
<html><head><script>
function validation()
{
var emailfilter=/^([a-zA-Z0-9_.-])++$/;
var b=emailfilter.test(document.form2.mailid.value);
if(b==false)
{
alert("Please Enter a valid Mail ID");
document.form2.mailid.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<form name="form2" action="user.php">
<p> Email-ID:
<input type="text" name="mailid">
</p>
<p>
<input type="submit" name="sub" value="Submit">
</p>
</form>
</body>
</html>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.