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 USAMember Posts: 132

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 GermanyMember Posts: 1

    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.