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

Howdy, Stranger!

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

Categories

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

NickFNickF USAPosts: 132Member

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

Comments

  • DavidMDavidM USAPosts: 342Member
    edited March 2014

    Yes it is possible.

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

Sign In or Register to comment.