I want to add text to table header's dynamically but I can't think of anything.
This is how I add text to div,
var textForDiv1 = getFromArray.ResourceKey;
$("#someDIVId").text(textForDiv1);
and it works, but how can I do same for a <th>
?
Edit
Html is being added dynamically, but this is how I am adding th
var someRow= "<tr class='someClass' ><th>text1</th><th>text2</th></tr>"; // add resources
$("#Table").append(someRow);
th
you want to put some text in?