Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: form validation


Message #1 by "asare b kingsford" <asarekb@t...> on Thu, 28 Jun 2001 14:47:03
or you can specifically send them as blank ''
onclick="confirm_action(delete, '', '', '')">

Or use the arguments property

function formCheck()
{
  arrayFields = checkForm.arguments;
  arrayLength = (arrayFields.length) - 1;

  for (i=1; i<arrayLength; i++)
  {
    myValue = objForm.elements[arrayFields[i]].value;
    // validate myValue
  }
}

  Return to Index