Hi all, I'm now on the second phase of the project I'm working on and starting to find cases where I'm repeating code which means one thing : refactor.
As an example I've got two dropdowns that select make and model with a bit of ajax to populate the second dropdown, these are always going to be together so it makes sense to permanently couple them and be done with it. What is the best way to prevent duplication in a case such as this while still keeping the ability to validate etc? Many thanks Simon