Automatically Highlight Field Text On Selection

2
Is there a way to automatically highlight the text (or the number or whatever content) inside a text box? I'm currently relying on "tab" to go through the text boxes on a page and change their values, since tab automatically highlights the content of the selected text box, however when I use the mouse pointer to select a text box it just shows me the cursor to enter additional text/numbers.
asked
2 answers
1

Another option would be to use the Set Attribute widget to manipulate your input field. With it you can easily manipulate elements, and for example add 

onClick="this.select();"

to your input field to enable the effect you're looking for.

answered
0

Maybe with a little css this will work.

See https://css-tricks.com/almanac/properties/u/user-select/

With an input field you can use the html/javascript widget with this piece of code in the snippet (be sure to select the jQuery option)

$('input[type="text"]').on('click', function () {
  this.select();
});

 

answered