I have a select box with some values. Upon clicking on a button, I want to remove the selected attibute for whichever option value has this property. Basically i want to reload the select box. I do not use jquery so is there any way in pure javscript to get it done?
I asked it in a different post because all answers relating to the post were in Jquery and i want to do it in javascript only.
I used removeAttribute function as
document.getElementById('selectboxID').removeAttribute("selected")
but it is not working.