I am using the following code to set a drop-down value to the current month, it is working in Chrome and Edge but in IE 11 the value is empty.
month = currentDate.toLocaleString(locale, {month:"short"})
document.getElementById("month").value = month
month contains the value "Jul" and is of type string, and I can set it as the value of a text box.
If I manually assign month = "Jul", it does set the value on the drop-down.