Create linked form elements controlled by classes and ids