Hi every one I am need of help. I currently have a checkbox as part of my page that is used to pass information. I want to change it into a button or when the button is clicked the check box is selected and grayed out and cant be deselected.

Can anyone point me in a direction that would help me do what I want.

Thanks,

Recommended Answers

All 2 Replies

You have to write javascript on the buttons click event to set the checkbox. As well as this the checkbox should be disabled like this
<input type="checkbox" id="yourname" name="yourname" value="1" disabled />

I see thanks for your help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.