Code: Select all
var dropdown1 = document.createElement('select');
dropdown1.setAttribute('id', 'nameї'+someIndex+']');
dropdown1.setAttribute('name', 'name1ї]');
dropdown1.setAttribute('onchange', 'somefun()');Is there some other function like setEvent() or something ?
Thanks