Reputation: 500
I am creating a new element like this:
var cell3=row.insertCell(2);
var t3=document.createElement("input");
t3.id = "txtEstStartDt"+index;
cell3.appendChild(t3);
As I have given an id to the element, I want to give a class.
t3.class = "abc";
Will this work?
Upvotes: 0
Views: 115