I have a click event attached to a table row (could be any object):
<table>
<tr class="row"><td>http://google.com</td></tr>
<tr class="row"><td>http://teslamotors.com</td></tr>
<tr class="row"><td>http://solarcity.com</td></tr>
</table>
<script>
$(document).ready(function() {
$(".row").click(function() {
var href = $(this).find("td").html();
window.location.href = href;
}
}
</script>
When I have a click event on the row, once I start to left-click and highlight the text, the click event fires before the user has a chance to copy/paste.
How do I still allow the user to select text on that row for copy and pasting?
NOTE: This question is instructional, I'll be providing my own answer.