# Simple Disable Textbox help!

**URL:** https://forum.kirupa.com/t/simple-disable-textbox-help/190060
**Category:** Uncategorized
**Created:** [June 8, 2006, 10:27am UTC](https://forum.kirupa.com/t/simple-disable-textbox-help/190060 "2006-06-08T10:27:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Largo](https://avatars.discourse-cdn.com/v4/letter/l/41988e/32.png) [@Largo](https://forum.kirupa.com/u/Largo)
#### Post date: [June 8, 2006, 10:27am UTC](https://forum.kirupa.com/t/simple-disable-textbox-help/190060/1 "2006-06-08T10:27:19Z")

</div>

Hi, im trying to make this input-textbox disabled after it´s been correctly typed in … I tried to use something like this “\_root.txt.enabled = false;” in the code but nothing worked …

Can anyone help?🙂

[LEFT]

```auto
 [LEFT]function check_answer(text, number) {
correct = new Array("mánudögum", "þriðjudögum") 
if (text == correct[number]) {
stig = eval( "_root.stig" + ( number + 1 ) );
stig._alpha = 100;
stig.gotoAndStop( 2 );
mynd = eval( "_root.mynd" + ( number + 1 ) );
mynd._visible = false;
_global.score++;

}[/LEFT]

```

[/LEFT]
