title: ADD REMOVE TABLE ROW to another table dynamically using jquery
body: <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" type="text/css" href="my_style.css"/&gt;
  
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;
  
  $(document).ready(function(){
    $("#addButton").click(function(){
  
    var n1=$("#first_name").val();
    var n2=$("#last_name").val();
  
      $("#table_dynamic").append("&lt;tr&gt;&lt;td&gt;"+n1+"&lt;/td&gt;"+"&lt;td&gt;"+n2+"&lt;/td&gt;&lt;/tr&gt;");
  
    });
    $("#updateButton").click(function(){
  
    });
    $("#updateButton").click(function(){
  
    });
  }); 
  
  &lt;/script&gt;
  &lt;h1&gt;My First JavaScript Application&lt;/h1&gt;
  &lt;h2&gt;Adding and Removing Contents Dynamically&lt;/h2&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;form&gt;
  &lt;table align="center" border="1" id="table_static"&gt;
      &lt;tr&gt; 
          &lt;td&gt;First Name : &lt;/td&gt;
          &lt;td&gt; &lt;input type="text" name="first_name" id="first_name" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Last Name:&lt;/td&gt;
          &lt;td&gt; &lt;input type="text" name="last_name" id="last_name" /&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;
              &lt;input id="addButton" type="button" value="AddRow"/&gt;
              &lt;input id="updateButton" class="hidden" type="button" value="Update" disabled/&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;input id="deleteButton" type="button" value="Delete" name="Delete" disabled/&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;br/&gt;
  &lt;table id="table_dynamic" width="50%" align="center" bo`enter code here`rder="1px"&gt;
      &lt;thead&gt;
      &lt;tr&gt;
          &lt;td&gt; First Name&lt;/td&gt;
          &lt;td&gt; Last Name&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>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.</p>