Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add table header dynamically in jquery


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

    $("#header1").text("Banana");
});

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #add #table #header #dynamically #jquery
ADD COMMENT
Topic
Name
2+6 =