Skip to main content
Participating Frequently
August 9, 2010
Question

cftextarea

  • August 9, 2010
  • 1 reply
  • 925 views

I am using cftextarea with richtext="true".  When the page first loads, if the user clicks the cftextarea, the cursor goes to the end of whatever text is in there.  The customer wants it to go to the beginning instead.  Does anybody know how to do this?

    This topic has been closed for replies.

    1 reply

    Inspiring
    August 9, 2010

    Hi,

    Can you please post your code here?.

    HTH

    Participating Frequently
    August 9, 2010

    <cftextarea  richtext="true" name="#RSF.responseLetterTemplate.scorpio.instanceName#" id="#RSF.responseLetterTemplate.scorpio.instanceName#" height="#RSF.responseLetterTemplate.scorpio.height#">#RSF.responseLetterTemplate.scorpio.letterText#</cftextarea>

    Inspiring
    August 9, 2010

    The cursor position is set by the user's browser.  You will need to use Javascript to the cursor position on the client-side.  Try googling something like: "javascript textarea set cursor"