• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 107
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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