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.
Selecting text in an element (akin to highlighting with your mouse)
:)
Using the accepted answer on that post, you can call the function like this:
$(function() { $('#textareaId').click(function() { SelectText('#textareaId'); }); });