move cursor ...

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
svi
Profound User
Posts: 20
Joined: Mon Feb 04, 2019 10:56 am
First Name: stephane
Last Name: villeminot
Company Name: alcyon france
Country: France
Contact:

move cursor ...

Post 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 :)
DavidBal
Profound User
Posts: 24
Joined: Fri Apr 13, 2018 4:06 am
First Name: David
Last Name: Baltromei
Company Name: H. Gautzsch Firmengruppe
Country: Germany
Contact:

Re: move cursor ...

Post 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
svi
Profound User
Posts: 20
Joined: Mon Feb 04, 2019 10:56 am
First Name: stephane
Last Name: villeminot
Company Name: alcyon france
Country: France
Contact:

Re: move cursor ...

Post by svi »

perfect !!

thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests