i have to show form with home address fields like street address,zipcode etc and then a checkbox for mailing address ‘same as above’. user fill home address fields and then check the checkbox as ‘same as above’ or user uncheck the checkbox then an another address fileds section same as home address section in same form appears for mailing address.when both address fields shows it works fine but when user ticks ‘same as above’.it gives validation for hidden address fields section i.e. mailing address.
i had solved this problem by putting conditional validation in controller but how can i solve it for client site validation?