I have a form with a select and a few text inputs. I'd like the form to be submitted when the select is changed. This works fine using the following:
onchange="this.form.submit()"
However, if the form also contains a submit button, then the form does not submit when the select is changed. I'm guessing some kind of conflict.
What are my options here?
Should I use something like
$(this.form).trigger("submit")
instead?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…