# AppLab: getElementById("ID") possible?

**URL:** <https://forum.code.org/t/applab-getelementbyid-id-possible/13574>\
**Category:** Uncategorized\
**Created:** [January 9, 2018, 12:49pm UTC](https://forum.code.org/t/applab-getelementbyid-id-possible/13574 "2018-01-09T12:49:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rejo4850](https://avatars.discourse-cdn.com/v4/letter/r/9dc877/32.png) [@rejo4850](https://forum.code.org/u/rejo4850)\
**Post date:** [January 9, 2018, 12:49pm UTC](https://forum.code.org/t/applab-getelementbyid-id-possible/13574/1 "2018-01-09T12:49:58Z")

</div>

Hi,

i’m currently working on an app where i’d need the cursor position in a `textInput`. I tried to do it via  
`getElementById("ID).selectionStart;`  
but that isn’t working so far.

Any ideas how i can do it or how i can use `getElementById("ID")` ?

---

<div class="post-metadata">

**Author:** ![terence.stone25](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/terence.stone25/32/5124_2.png) [@terence.stone25](https://forum.code.org/u/terence.stone25)\
**Post date:** [January 17, 2018, 4:32pm UTC](https://forum.code.org/t/applab-getelementbyid-id-possible/13574/2 "2018-01-17T16:32:48Z")

</div>

11 posts were merged into an existing topic: [About the Website and Tools How-To category](https://forum.code.org/t/about-the-website-and-tools-how-to-category/9621)

---

<div class="post-metadata">

**Author:** ![terence.stone25](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/terence.stone25/32/5124_2.png) [@terence.stone25](https://forum.code.org/u/terence.stone25)\
**Post date:** [January 17, 2018, 4:32pm UTC](https://forum.code.org/t/applab-getelementbyid-id-possible/13574/3 "2018-01-17T16:32:48Z")

</div>


