Client drop down list to populate location drop down list

Dear All,
I have link here What I manage to do for now is to add the rows dynamically. What I need if I select the client then only it automatically fill the location drop down list and I want to maintain a rule to say that the location on two imediate rows cannot be same? Any help on how to achieve this?