This function extends the native JavaScript select() (which only works on input and textarea) so that it can be used to select the content of every DOM element you want.
select()
input
textarea