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
  • 37,241
  • 25
  • 195
  • 267
Sandeep Kumar
  • 234
  • 5
  • 14
  • 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