I am trying to simulate click on an input box. When its clicked manually, a drop down auto suggestion box appears as suggestions about past searches. However, when I try to simu
If you want to use pure/native javascript, you can use the onfocus attribute of the input element to call a Js function.
input
OK
In the above file, you should see the "OK" button appear when you click on the input field.