add table header dynamically in jquery

JavaScript
    $("#Table th").each(function () {

     $(this).text("Dummy text")
 })
Source

Also in JavaScript: