Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Autoselect
<td><span class=select>david@example.com</span></td>
<script>
$('.select').click(function(){
var range = document.createRange();
range.selectNodeContents(this);
window.getSelection().addRange(range);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.