I was recently reading this old SO question: Dynamically add input type select with options in Javascript
about dynamically creating the options for a <select> element. I understand that issue and think Chandu's answer is fine.
I took the JSFiddle of the OP and Chandu's answer and forked that into a JS Fiddle of my own that seems to work fine under Chrome (updated yesterday) and Firefox (52.6.0): http://jsfiddle.net/h1cg7ncy/2/
But that fiddle seems to fail under IE 11.
The IE console is showing: 'addinput' is undefined
I guess there is something about the way IE does things that I'm not understanding.
My question is: "How can this jsFiddle be fixed so that it works the same under Chrome, Firefox and IE11?"
Thanks!
It seems that Template literals: EG ` are not valid JavaScript under IE11. About Template Literals