I am trying to dynamically add a new input feild with the "onchange" attribute:
var f = document.getElementById("dN[" + fieldsd + "]"); // create/insert new
el = document.createElement("input");
el = f.appendChild(el);
el.name = "dName[" + fieldsd + "]";
el.id = "dName[" + fieldsd + "]";
el.onchange = "validation()";
I have also tried setAttribute both don't work for me. Is there a way to make this work or a work around?