Page 1 of 1

move cursor ...

Posted: Tue May 14, 2019 4:07 am
by svi
Hello everyone,

Quick question of the day: how to move the cursor on an area of ​​my choice (ideally / id of my zone) when we click on a button ...
Thank you in advance :)

Re: move cursor ...

Posted: Tue May 14, 2019 6:36 am
by DavidBal
Hi,
you can add to the onclick event of the button this little JS:
document.getElementById("IdTextArea").focus();

https://www.w3schools.com/jsref/met_html_focus.asp

Hope this helps,

David

Re: move cursor ...

Posted: Tue May 14, 2019 11:20 am
by svi
perfect !!

thank you