Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable(greyedout) a checkbox from some action in the back-end

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am working on data manupulation (Access Database) using ASP. I want a single or some checkboxes to be greyed out in the client side depending on some action in the back-end. Please help me as to how to do that. Like, I have:
if((glasstaken)=0)then
response.write "document.form1.ch[3].disabled=true"
but it doesn't work. So, how to pass this info to disable that check box in the front end. Thanks in advance!
 
As you build your output HTML to go back to the client simply create it as:
Code:
<INPUT id=checkbox3 disabled 
type=checkbox name=checkbox3>
... of course inserting your conditional logic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top