$(function(){ var someRow= "<tr class='someClass' ><th id='header1' >text1</th><th>text2</th></tr>"; // add resources $("#Table").append(someRow); $("#header1").text("Banana"); });