actually around the case text, it's saying "text" or "textarea" gets the code underneath textarea.
case "text":
case "textarea":
if (obj.value == "" || obj.value == null){
alertMsg += " - " + fieldDescription[i] + "\n";
}
break...
Wow that was very helpful thank you very much my only question is ok well the very first function from this thread needs to stay but i need to integrate just email checking, and your first suggestion of two before the @, two after, and two after the "." is exactly what i need but the thing is...
I need to combine this into my function so that onclick will do all that i need which is the function i posted plus this:
<script language = "Javascript">
/**
* DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
*/
function echeck(str) {
var at="@"...
Hi everyone does anybody know how to combine 2 seperate functions. Here is my first function code:
function formcheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("name", "email", "comment");
// Enter field description to appear in the dialog box
var fieldDescription...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.