Set the read-only TextBox

18 Dec 20241 minute to read

To make the TextBox read-only, set the readonly property to true.

<div class="control-section">
    @Html.EJS().TextBox("readonly-textbox").Placeholder("Enter Name").Readonly(true).Render()
</div>
public ActionResult Index()
{
    return View();
}