js validation
Posted: Sun Apr 20, 2003 12:05 pm
okay, a number validation is <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> me off...im very bad at JS and cant find a way to distinguish a string from a number....If any one can help, it be very nice of yah...thnx
AND can any one find the error in this code, thnx
AND can any one find the error in this code, thnx
Code: Select all
onClick="
var Fcount = 0
var Formstatus = true
while ((Fcount < document.formsїblah].elements.length) && (Formstatus))
{
if (document.formsїblah].elementsїFcount].value == '''')
{
alert(''Please complete all fields.'')
document.formsїblah].elementsїFcount].focus()
Formstatus = false
}
Fcount ++
}
return Formstatus
">