cyrixware Posted August 4, 2008 Share Posted August 4, 2008 hello everyone! i have a very simple problem using checkboxes. i want o disable the remaining checkboxes when i selected the allowable or maximum checkboxes: example: -------------------- NOTE: you can select only a maximum of two fruits. checkbox1 = orange checkbox2 = grapes checkbox3 = guava checkbox4 = apple checkbox5 = orange ------------------- let say for instance i selected the first 2 checkboxes. after that the remaining 3 checkboxes will be disabled. how to do that. Quote Link to comment Share on other sites More sharing options...
elflacodepr Posted August 4, 2008 Share Posted August 4, 2008 you can use Javascript or AJAX of course if you mean to do it all without reloading the page like a real-time action. Quote Link to comment Share on other sites More sharing options...
cyrixware Posted August 4, 2008 Author Share Posted August 4, 2008 you can use Javascript or AJAX of course if you mean to do it all without reloading the page like a real-time action. checkboxes with the same name. i use array. will you please give me a sample codes. if it is ok with you. thanks Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted August 4, 2008 Share Posted August 4, 2008 why not just use 2 select form elements? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.