Hi
I want when form loads cursor should be at first column.
Thanks
Hi
I want when form loads cursor should be at first column.
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Sep 6, 2024, 12:24 AM EDT
Try this once.
Users window.onload = function () { var empCodeField = document.getElementById(""); empCodeField.focus(); }; Code *Vishal JoshiRank #377 · 6.7K reputationPosted Sep 5, 2024, 7:21 AM EDT
Hello Ramco,
You can use the TabIndex to set focus on the first column.
Try the below code to.
Thanks
Vishal Joshi
Naimish MakwanaRank #324 · 7.7K reputationPosted Sep 4, 2024, 9:14 AM EDT
To set the cursor to the first column when a form loads, you can use JavaScript. Here’s a simple example:
In this example, the window.onload event ensures that the cursor is set to the input field with the ID firstColumn when the form loads. You can adjust the ID to match the specific field you want to focus on.
Thanks
Ramco RamcoRank #462 · 5.4K reputationPosted Sep 5, 2024, 5:13 AM EDT
Hi
I have below code but it is not working
Thanks
Ramco RamcoRank #462 · 5.4K reputationPosted Sep 5, 2024, 7:29 AM EDT
Hi Vishal
What should i change in my code
Thanks
Vishal JoshiRank #377 · 6.7K reputationPosted Sep 5, 2024, 9:27 AM EDT
Add TabIndex="1" in