wheels995
06-08-2006, 07:42 AM
I have a few fields that I need to check for a greater than zero input on submit.
fields:
$602200
$602201
$602202
I need to check $602200 if it is greater than 0 then stop and submit form. If it is less then 0 then go to $602201. Do the same for $602201 and $602202. If at the end of the fields none are greater than 0 then error.
I do not want to just check all fields as there are other fields on this form that require information that has nothing to do with the info in the above fields.
I am new to JS so any direction on this would be greatly appreciated. Thank you
fields:
$602200
$602201
$602202
I need to check $602200 if it is greater than 0 then stop and submit form. If it is less then 0 then go to $602201. Do the same for $602201 and $602202. If at the end of the fields none are greater than 0 then error.
I do not want to just check all fields as there are other fields on this form that require information that has nothing to do with the info in the above fields.
I am new to JS so any direction on this would be greatly appreciated. Thank you