I have read between 5 & 7 posts, have tried to play with some of the things I have read, including jQuery, but it feels as though most posts are well beyond my understanding.
I have a form which will act as a data submission tool, so let's say 100 inputs.
I just need help checking each input, and I figured that I should be able to do it using a loop.
Goal code example:
function ()
{
for (i = 1; i < 101 ; i++);
var c = document.getElementsByName("Input_row_" [i]);
if ( c = some conditionals here )
{
alert("message");
return false;
}
}
For a specific argument, one of the things I need to check is that there are no spaces in the input:
function ()
{
for (i = 1; i < 101 ; i++);
var c = document.getElementsByName("Input_row_" [i]);
if ( c = "" )
{
alert("message");
return false;
}
}
Can anyone help with my syntax or get me further towards the goal?
Thanks.
-It goes without saying that I am not a programer by trade, so simple explanations would be great.