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>
Cœur
  • 34,719
  • 24
  • 185
  • 251
Sandeep Kumar
  • 189
  • 4
  • 13
  • 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. – Martin Jun 08 '18 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. – Rory McCrossan Jun 08 '18 at 18:38

0 Answers0