I have the following:
author\'s first name author\'s last name
<
-
Give an id to your table, suppose my_table and an id to the anchor a suppose my_button then try the below:
Your modified code:
author's first name author's last name
Add Author
And add the below script after including the jquery library in your page.
$(document).ready(function()
{
new_row=" ";
$("#my_button").click(function()
{
$("#my_table").append(new_row);
return false;
}
}
- 热议问题