selecting input on page load
This commit is contained in:
@@ -40,8 +40,15 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function selectInput() {
|
||||||
|
const input = document.querySelector(".dataTables_filter input");
|
||||||
|
input.focus();
|
||||||
|
input.select();
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
loadBatchCodeTable();
|
loadBatchCodeTable();
|
||||||
|
selectInput();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
Reference in New Issue
Block a user