Answers for "how to get default selected value of dropdown in jquery"

7

select dropdown default value

<select>
  <option value="" selected disabled hidden>Choose here</option>
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
  <option value="4">Four</option>
  <option value="5">Five</option>
</select>
Posted by: Guest on May-03-2020
0

To set the dropdown default value using jquery

$("#SelectPayment option:selected").val('Cash');
Posted by: Guest on May-07-2020

Code answers related to "how to get default selected value of dropdown in jquery"

Browse Popular Code Answers by Language