Here is a table I have:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
// Looking for suggestions here
});
});
</head>
<body>
<table>
<tr><th>Name</th><th>Email</th></tr>
<tr><td>abc</td><td><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e9888b8aa98e84888085c78a8684">[email protected]</a></td></tr>
<tr><td>xyz</td><tr><td><a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1169686b51767c70787d3f727e7c">[email protected]</a></td>
</table>
<button>click here</button>
</body>
</html>
My goal is that upon clicking the button, it will generate a json object with all the table data and send it to another url using jquery.