Our three approaches are: Using a change event; Using ngModel; Using viewChild The task is to reset the value of the select element to its default value with the help of jQuery. Using regular JavaScript, I would do something lik Stack Overflow. javascript; html; asp.net-mvc Get selected value in dropdown list using JavaScript. Share. As has been pointed out in a select box, the .val() attribute will give you the value of the selected option. ; Populate its Data property with the collection of items you want to appear in the dropdown. First, shoutout to ashraf aaref, who's answer I would like to expand a little.. As MDN Web Docs suggest, using RadioNodeList is the preferred way to go: // Get the form const form = document.forms[0]; // Get the form's radio buttons const radios = form.elements['color']; // You can also easily get the selected value console.log(radios.value); // Set the "red" option as Syntax: Return the value attribute: $(selector).val() Set the value attribute: $(selector).val(value) Set the value attribute using a function: you can get the same result using jQuery in a single line $('#select_field_id').val() and this will return the array of values of well. Now I write these code for resolve the problem: $('#sel') .empty() //empty select .append($("