Remove Table Elements JQquery

by mmansion

HTML

<table id="myTable">
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>a</td><td>b</td><td>c</td></tr>
</table>

<button>CLICK</button>

JavaScript

$('button').click(function(){
    $('#myTable').find('tr').remove();
});