1

I am trying to stop disable in textarea. I am working in a markdown previewer and I want to apply that. I try this methods but it didn't work:

<textarea name="nowrap" wrap="soft">Something</textarea>
<!-- and css method:-->
textarea {
 white-space: nowrap;
}

Thanks!

1 Answers1

1

Sorry! I find the solution myself. I need to add readonly. Example:

textarea{
width: 350px;
background-color: #c0d8d8;
}
<textarea readonly>Something is funny</textarea>