Submit a form on element change