function copyAndAppend(id){
$(“#”+id+” tr:last”).after(“
” + $(“#serviceRow”).html() + “
“);
}
Explanation:
1) $(“#serviceRow”).html() : I will copy all the inner content of an element having id = “serviceRow”
2) $(“#”+id+” tr:last”) : I have used ‘id’ variable, its value will be the id of a table, and “tr:last”.after() will
add the new row at the end of the table
Like this:
Like Loading...
Related
About rajkirpal
i am a software engineer. and i have decent knowledge about java technologies like
ANDROID,
Servlet,
Jsp,
Struts,
Hibernet,
Spring,
J2ME,
Java Script,
Ajax,
JQuery,
CSS.
Further i am
Preparing Easy understandable materials/documents upon the same java technologies
and developing project in core java , advanced java and j2me , ANDROID as per the requirements
Also designing the web sites and logos
Thank You.