We can trigger select box option click from outside the select box.
Create a Select box,
Now we are going to trigger the options click from outside.
Create three buttons,
So when you click the first button(F.R.I.E.N.D.S), respective option should be selected in the select box.
To do so, you can use trigger event as given below,
To trigger click of the options,
Check out working code in jsFiddle
Thanks :)
Create a Select box,
Now we are going to trigger the options click from outside.
Create three buttons,
So when you click the first button(F.R.I.E.N.D.S), respective option should be selected in the select box.
To do so, you can use trigger event as given below,
To trigger click of the options,
Check out working code in jsFiddle
Thanks :)
Comments
Post a Comment