cursor position in input widget

cursor position in input widget

  
Hi,

is there a way to get the cursor position in an input widget? I want to press a button to add text (from another widget) at the cursor position. I now have Contact_Emailtekst.TypedValue + tekst.TypedValue  what works, but obviously put the text to add at the end of the existing text. 

Regards, Harry
You can do those types of actions using jQuery. Are you familiar with jQuery and how it works?

if yes, please take a look at:
http://stackoverflow.com/questions/946534/insert-text-into-textarea-with-jquery/946556#946556
Hi Marco,

I'm a bit familiar with it. Question is where do I put the jquery code?

Regards, Harry
From what I've understood, it should all happen when you press a button, right? In that case, you can define an exteded property on that button "onclick" and put the code directly there. The value for the "onclick" property is an expression where you can type the jQuery/javascript code directly and use the ids of the page elements.

To use the ids of the page elements, such as inputs, buttons, etc, you need to give them a name (in the properties).
Ok, thnx Marco