I didnot understand the question clearely. But still I had a try. Below is the simple code. enhance the same as per your logic.
<html>
<head>
<script src="C:\\Users\\Downloads\\jquery-2.1.1.js"></script>
<script>
$(document).on('click','.milestonetable',function(){
alert('U clicked on table');
});
</script>
</head>
<body>
<form>
<table class="milestonetable">
<thead>
<th><td>head1</td> <td>head2</td></th>
<thead>
<tbody>
<tr><td>1</td> <td>ABC</td></tr>
<tr><td>2</td> <td>XYZ</td></tr>
</tbody>
</table>
</form>
</body>
</html>
On clicking on table, it is showing alert.