I am using the following code to submit to a form:
element.dispatchEvent(new Event("submit"));
Inspector returns the error:
Object doesn't support this action
This works in Chrome.
The purpose of this command is to make a division call the submit event on a form when clicked.
Jquery is not an option
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…