Is it possible to set HTML checkboxes as read-only? - 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 set HTML checkboxes as read-only?

NickFNickF USAPosts: 132Member

I was trying a lot but was not successful. Is it possible to set HTML checkboxes as read-only? If so, can someone please explain?

Tagged:

Comments

  • digitalmedigitalme GermanyPosts: 1Member

    Just add the disabled attribute as done in the following snippet:

    <input type="checkbox" id="chk" value="somve value" disabled="disabled" checked="checked"/>

Sign In or Register to comment.