I have three fields called Billing Method, Amount Paid Now and Payment Type. Billing Method and Payment Type are drop down and Amount Paid Now is a Input field where we can enter a value.
Now I am doing Jquery validation on Payment Type field such that: Payment Type field is required when we select “Direct Bill” or “MAC” from the Billing Method drop down and the value of Amount Paid > 0.
Now I can generate same validation error message like "Payment Type is required if Direct Bill is selected and Amount paid is greater than 0." For both “Direct Bill” and “MAC”
But I want to generate two separate error messages for two different select options
If we select the “MAC” from Billing Method drop down and Amount Paid > 0 I wanted to display "Payment Type is required if Direct Bill is selected and Amount paid is greater than 0."