Question
function validateForm() { var x = document.forms[myForm][email].value; var atpos = x.indexOf(@); var dotpos = x.lastIndexOf(.); if (atpos <1 || dotpos =x.length) { alert(Not a valid
function validateForm() {
var x = document.forms["myForm"]["email"].value;
var atpos = x.indexOf("@");
var dotpos = x.lastIndexOf(".");
if (atpos<1 || dotpos
alert("Not a valid e-mail address");
return false;
}
}
Error: The character encoding was not declared. Proceeding using windows-1252.
Error: Element head is missing a required instance of child element title.
From line 15, column 1; to line 15, column 7
Content model for element head: If the document is an iframe srcdoc document or if title information is available from a higher-level protocol: Zero or more elements of metadata content, of which no more than one is a title element and no more than one is a base element. Otherwise: One or more elements of metadata content, of which exactly one is a title element and no more than one is a base element. Error: Bad value ppraneet@students.kennesaw.edu for attribute type on element input. From line 19, column 8; to line 19, column 65 ">Email: There were errors. (Tried in the text/html mode.) please fix these errors and update it
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started