Jump to content

checkboxes problem


cyrixware

Recommended Posts

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. :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.