# Javascript: TextField.setIsSpellCheckingEnabled Method

> Gets whether a text field's text is checked on misspelled words.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TextField.setIsSpellCheckingEnabled Method
- **390 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/setisspellcheckingenabled-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/setisspellcheckingenabled-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/setisspellcheckingenabled-method/llms-full.txt

---

### Description

Gets whether a text field's text is checked on misspelled words.

### Syntax

```javascript
<void> TextField.setIsSpellCheckingEnabled(<boolean> isSpellCheckingEnabled, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| isSpellCheckingEnabled | Specifies whether a text field's text is checked on misspelled words. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TextField.setIsSpellCheckingEnabled` in a practical document-editing workflow. It gets whether a text field's text is checked on misspelled words.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureIsSpellCheckingEnabled(textField) {
    textField.setIsSpellCheckingEnabled(
        true,
        function() {
            console.log("set is spell checking enabled completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TextField.setID Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/setid-method/llms-full.txt)
- **Next:** [Javascript: TextField.setName Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/textfield/setname-method/llms-full.txt)
