[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 95
  • Last Modified:

HTML Check box only for display

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
sakthikumar
Asked:
sakthikumar
1 Solution
 
KimputerCommented:
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
 
Ryan ChongCommented:
something like this?
<input type="checkbox" checked="checked" disabled readonly> My checkbox

Open in new window

or use an image instead.
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now