I have the following javascript function which creates a new row with different cells including button as the cell item type. So how can I implement onClick of the button functionality here?
My Code:
var propertyCell = row.insertCell(1);
var propertyName = document.createElement("input");
propertyName.type = "text";
propertyName.size = "6";
propertyName.id = "pName"+rowCount;
//alert(propertyName.size);
propertyCell.appendChild(propertyName);
var image1Cell = row.insertCell(6);
var image1 = document.createElement("input");
image1.type = "button";
image1.value = "Camera";
image1.size = "6";
image1.id = "image1"+rowCount;
//image1.onclick = function(){sdfkvk(dh,sdd)}
image1Cell.appendChild(image1);