Select all contents of textbox when it receives focus (Vanilla JS or jQuery) September 27, 2022 by Tarik $(document).ready(function() { $("input:text").focus(function() { $(this).select(); } ); });