I am trying to add a bootstrap button into a row dynamically. Below is my code. A button is added but it is not bootstrap style.
var cell4 = row.insertCell(3);
var element3 = document.createElement("input");
element3.type = "button";
element3.name = "add";
element3.value="Remove";
element3.class="btn btn-danger btn-xs";
cell4.appendChild(element3);
Can someone tell the right way to do it? Thanks.