Home > Error Message > Javascript Error Message Text

Javascript Error Message Text


I changed the submission "submit" button to a "button" and passed the form object to the review script for easier access to the form elements. ReplyDeleteRaghavendra RaoFebruary 27, 2014 at 3:01 PMThanks a lotReplyDeleteShivam ChughApril 3, 2014 at 10:28 PMthis code is fine but its showing only one error message at a time .. The validation works in the initial page but I get an error alert, "Error: couldnot get Form object Update". Related 0Alert box not showing0Red Error message without loading a new page and alert box20How to show an alert box in PHP?0How to get alerts message instead of showing it as http://rsmasters.net/error-message/javascript-error-message.html

Try something like: First_Name

Then change your validate function to read if(myform.fname.value.length==0) { document.getElementById("fname_error").innerHTML="this is invalid name "; } Second, I'm always hesitant You can also suppress this message, if you want to hide this error from a user.