What I am trying to do is when the user opens the modal and select option from the dropdownlist and close it without doing anything and reopen it the dropdownlist become "--select--" again
<pre>
<div class="inpu_modal">
@Html.LabelFor(m => m.Add_interaction.with_name, new { @class = "sub-title alighn" })
@Html.DropDownListFor(m => m.Add_interaction.with_name, new SelectList(ViewBag.names, "Value", "Text"), "--Select--", new { @class = "with", @autocomplete = "off" })
<span class="field-validation-valid text-danger with_name_span"></span>
</div>
</pre>
function Open_new_interaction() {
document.querySelector('.drug_name_span').innerHTML = null;
document.querySelector('.with_name_span').innerHTML = null;
document.querySelector('.Degree_span').innerHTML = null;
$('.drug option:selected').removeAttr('selected');
$('.with option:selected').removeAttr('selected');
$('#Add_InteractionDrug').modal("show");
}