From a33059bb4eaf0fbd47a6bbbc6471dc3682353904 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Sat, 12 Feb 2022 21:19:51 +0100 Subject: [PATCH] selecting input on page load --- batchCodeTable.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/batchCodeTable.html b/batchCodeTable.html index 2258fcaea73..f26b541587f 100644 --- a/batchCodeTable.html +++ b/batchCodeTable.html @@ -40,8 +40,15 @@ }); } + function selectInput() { + const input = document.querySelector(".dataTables_filter input"); + input.focus(); + input.select(); + } + $(document).ready(function () { loadBatchCodeTable(); + selectInput(); });