Solved

HTML Check box only for display

Posted on 2016-09-26
3
65 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 50

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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

792 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