I'm working on a custom Joomla module. I have a JForm that contains multiple custom dropdown lists based on JFormFieldList. The form should be submitted when a value is selected from one of the custom lists.
What is the best way to do this? It seems that I should add the following expression to select html tag: onchange="this.form.submit()
https://stackoverflow.com/questions/7231157/how-to-submit-form-on-change-of-dropdown-list
But as the html select tag is not directly generated by my code, I'm not sure how to do this the best.
Any hints are highly appreciated! Thanks!