Display select box options through script
Posted: Sun Aug 01, 2021 1:26 pm
Dear Scott and Team,
I have a text box and a select box in my rich DSPF. My requirement is simple. Whenever, the user clicks on the text box, a user click on the select box should be simulated and the dropdown with the list of options must be displayed. i.e, the select box options dropdown must be displayed as if the user clicked on it.
Please let me know if this can be achieved through a onClick event of the text box widget?
I have tried the above (replacing the MouseOut/MouseOver events with onClick) but this seems to grey out the select box.
I have a text box and a select box in my rich DSPF. My requirement is simple. Whenever, the user clicks on the text box, a user click on the select box should be simulated and the dropdown with the list of options must be displayed. i.e, the select box options dropdown must be displayed as if the user clicked on it.
Please let me know if this can be achieved through a onClick event of the text box widget?
Code: Select all
<select onMouseOut="this.size=1;" onMouseOver="this.size=this.length;">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
I have tried the above (replacing the MouseOut/MouseOver events with onClick) but this seems to grey out the select box.