I want to know how to trigger the onClick
event of any select
(html combobox element).
I tried to do $('#MySelect').click();
using jQuery
and tried document.getElementById('MySelect').click();
using pure javascript.
But the two don't fire the dropdown event that have the options of the select.
Ps: i have sure that selector $('#MySelect')
exists.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…