disable/enable checkboxes with selection of other checkboxes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

disable/enable checkboxes with selection of other checkboxes

Post by nite4000 »

Hey,

I have a form on a page that has checkboxes but in this case only a certain 5 boxes are being user

box a


then you have boxb-boxf

now if i select box a then box b-f is diabled

if i select all or any of the boxes in box b-f then box a is disabled.

I did this a while back but cant seem to find any code to help me in the right direction. if anyone has any ideas let me know

Thanks
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: disable/enable checkboxes with selection of other checkb

Post by social_experiment »

Look into a javascript solution;
http://stackoverflow.com/questions/5215 ... le-disable
hth
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

Re: disable/enable checkboxes with selection of other checkb

Post by nite4000 »

ok i will chk this out thanks
Post Reply