77 309
Assignments Done
Successfully Done
In July 2019

Answer to Question #15688 in Java | JSP | JSF for rijo joy

Question #15688
this is my javascript code how to validate

<-----this is my java script--------->

<!-------this is my form validation------->

function validateForm(theForm)
var errReport = "";
errReport += validUsername(theForm.username);
if (errReport != "")
alert("The was a problem with the following field(s):\n" + errReport);
return false;
return true;
//form validation close //

//valid username //
function validUsername(fld)
var error = "";
var valid = /^[a-zA-Z0-9]+$/;
if (fld.value == "")
fld.style.borderColor = '#ff0000';
Expert's answer
Use this link, please:

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions