Is it possible to make a text input non-editable in HTML?

I need to make a text input non-editable in my HTML form. How can I achieve this?

Comments

  • DavidMDavidM USA
    edited March 2014

    Yes it is possible.

    <input type="text" value="YourValue" class="yourclass" readonly>

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion