I disable a textarea like in this code snippet:

```js
function toggleDisabled(_checked,id) {
  document.getElementById(id).readOnly = !_checked;
}
```

```html
<input type="checkbox" name="no" value="1" onchange="toggleDisabled(this.checked,'new_order')">
<textarea name="noa" id="new_order">FOOO</textarea>
<input type="text"  name="noo" id="new_order">
```

Now I want input text to get disabled when I check the checkbox. So that both textarea and input:text will be disabled.

I tried to add the id that I used as ID for textarea but input:text and textarea are conflicted since readOnly is only for textarea.

So that I need a way tp say if textarea disable like this... , if input disable like this ...