Well, I am confused on how to do this..!!!
So i thought i'll ask the Experts here...
In one of my
JSP page(s) I generate a table like this:
Now As far as Javascripting is concerned, How do I get the names of the Input Fields.. like 0,1,2.... in the Javascript(JS)
because all these input fileds have Time Values, which I have to check whether they are in the right format, before allowing Submission...
Previously I did something like this:
// time format checking
if(f.one.value != ""){
if(!IsValidTime(f.one.value))
{
f.one.focus()
return false
}
}
In this case I knew that "one" is the name of the Input filed..
How do i do this in javascript.. because I dont know the number of input fields I might have in every occasion...
Any other ideas, are also greatly Appreciated :-)
Thanks a lot for your time & Help
cheers