Answers for "create button inside td tag javascript"

1

create button inside td tag javascript

var btn = document.createElement('input');
btn.type = "button";
btn.className = "btn";
btn.value = entry.email;
btn.onclick = (function(entry) {return function() {chooseUser(entry);}})(entry);
td.appendChild(btn);
Posted by: Guest on February-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language