How can I make it so when you click inside a textarea, its entire content gets selected?
And eventually when you click again, to deselect it.
I ended up using this:
$('.selectAll').toggle(function() { $(this).select(); }, function() { $(this).unselect(); });