<html>
<head>
<link rel="stylesheet" type="text/css" href="my_style.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
$(document).ready(function(){
$("#addButton").click(function(){
var n1=$("#first_name").val();
var n2=$("#last_name").val();
$("#table_dynamic").append("<tr><td>"+n1+"</td>"+"<td>"+n2+"</td></tr>");
});
$("#updateButton").click(function(){
});
$("#updateButton").click(function(){
});
});
</script>
<h1>My First JavaScript Application</h1>
<h2>Adding and Removing Contents Dynamically</h2>
</head>
<body>
<form>
<table align="center" border="1" id="table_static">
<tr>
<td>First Name : </td>
<td> <input type="text" name="first_name" id="first_name" /></td>
</tr>
<tr>
<td>Last Name:</td>
<td> <input type="text" name="last_name" id="last_name" /></td>
</tr>
<tr>
<td>
<input id="addButton" type="button" value="AddRow"/>
<input id="updateButton" class="hidden" type="button" value="Update" disabled/>
</td>
<td>
<input id="deleteButton" type="button" value="Delete" name="Delete" disabled/>
</td>
</tr>
</table>
<br/>
<table id="table_dynamic" width="50%" align="center" bo`enter code here`rder="1px">
<thead>
<tr>
<td> First Name</td>
<td> Last Name</td>
</tr>
</thead>
</table>
</form>
</body>
</html>
I want to generate dynamic table , using the add,update ,delete button we can handle it, here I wrote code for adding row....... but i want to delete/update that row after selecting perticular row, how i will do it, plz help me.