Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<table id="table1" >
  <tr>
    <td>Table 1</td><td><button onclick="removetable('#table1');" >delete</button></td>
  </tr>
  </table>
  <table id="table2" >
  <tr>
    <td>Table 2</td><td><button onclick="removetable('#table2');" >delete</button></td>
  </tr>
  </table>
  <table id="table3" >
  <tr>
    <td>Table 3</td><td><button onclick="removetable('#table3');" >delete</button></td>
  </tr>
  </table>
  <table id="table4" >
  <tr>
    <td>Table 4</td><td><button onclick="removetable('#table4');" >delete</button></td>
  </tr>
  </table>
</body>
</html>
 
function removetable(table){
$(table).remove();
  
}
$(document).ready(function(){
});
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers