Readonly checkbox

Discussion in 'HTML & Website Design' started by Devtard, Jul 9, 2012.

  1. #1
    Is there away to display a readonly checkbox which value cannot be changed? I know that I can use disabled checkbox for this purpose but it does not send its value in a form.

    Any advices?
    Thanks.
     
    Solved! View solution.
    Devtard, Jul 9, 2012 IP
  2. #2
    You can use this :
    <input type="checkbox" onclick="return false" onkeydown="return false" />

    and by using css you can change visual effect of checkbox so that it looks like disabled.
     
    cospro, Jul 9, 2012 IP
    Devtard likes this.
  3. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #3
    Thank you.
     
    Devtard, Jul 9, 2012 IP