Validate field value

Validate field value

Hi,

Does anyone know if there is a way in jquery to validate the value entered in a field. I have several fields and I want to make sure the numbers entered are never the same as what has already been entered in another field.

eg.

Field1_value
Field2_value
Field3_value
Field4_value

None of the field values can be the same. The fields are all restricted to numeric values. Also I do not want the value entered to be greater than 50.

Thanks in advance.

zero