0

I am trying to open a select element by the following code but with no luck.

$("#surveyno-select").trigger('mousedown');
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<select id="surveyno-select" class="form-control" onchange="loadquery(this)" selectionorder="4">
  <option value="-1">Please Select a Surveyno</option>
  <option value="1">1</option>
  <option value="10">10</option>
</select>

2
  • Your question is lacking an incredibly lot of information and code. Define "open a select element" and elaborate on what 'exactly' you are trying to achieve. Commented Jun 8, 2018 at 18:36
  • Assuming you mean that you programmatically want to open the list of option elements in a select, then no, that's not possible. Commented Jun 8, 2018 at 18:38

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.