have javascript code where i have the function to validate the required field(for each field one one function).My problem is i want only method where i can just pass the ID to validate the required field and corresponding field has to style based on error .I mean if it doesn't have any value do make the field as red colour and if user enter then colour has to change .have javascript code where i have the function