# Cursor at end of input text field after updating

**URL:** <https://forum.kirupa.com/t/cursor-at-end-of-input-text-field-after-updating/261703>\
**Category:** flash\
**Created:** [May 30, 2008, 1:35am UTC](https://forum.kirupa.com/t/cursor-at-end-of-input-text-field-after-updating/261703 "2008-05-30T01:35:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zemm](https://avatars.discourse-cdn.com/v4/letter/z/4491bb/32.png) [@zemm](https://forum.kirupa.com/u/zemm)\
**Post date:** [May 30, 2008, 1:35am UTC](https://forum.kirupa.com/t/cursor-at-end-of-input-text-field-after-updating/261703/1 "2008-05-30T01:35:10Z")

</div>

I’ve searched and I can’t find an answer to this problem. I’m using Flash 8 Professional.

I have a multiline input text box which a user can type stuff into, then click a button which will save what they typed and load another lot of text (all using XML). What I would like is to set the flashing cursor to the end of this box when it is updated. I’ve tried a few things:

```auto

Selection.setFocus(_parent.journalentry);
Selection.setSelection(0, 0);
_parent.journalentry.text = (c.firstChild ? c.firstChild.nodeValue : '');
Selection.setFocus(_parent.journalentry);
Selection.setSelection(_parent.journalentry.text.length, _parent.journalentry.text.length);

```

This works as expected on the first load but on subsequent loads the cursor will be where the user last left it, as if the setSelection is ignored. The Select.setSelection(0, 0) was to test a few theories - there are no changes in behaviour.

Is it possible to make this work?
