Solved

HTML Check box only for display

Posted on 2016-09-26
3
66 Views
Last Modified: 2016-09-27
Hi,

I want to display a check box value checked, but I don't want the user to change it,
it should be only for display.

How can I accomplish this.?
0
Comment
Question by:sakthikumar
3 Comments
 
LVL 35

Expert Comment

by:Kimputer
ID: 41816125
Have it supported by the click function that will enable it. That way, whatever they do, it's always checked (easiest to do it is under jQuery)
0
 
LVL 51

Accepted Solution

by:
Ryan Chong earned 500 total points
ID: 41816182
something like this?
<input type="checkbox" checked="checked" disabled readonly> My checkbox

Open in new window

or use an image instead.
0
 
LVL 33

Expert Comment

by:Big Monty
ID: 41816823
or use an image instead.

I second this. if you need to pass along a value for the checkbox, you can just add a hidden field right under the image
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question