Solved

HTML Check box only for display

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

772 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