Jump to content

Recommended Posts

Hi guys,

 

I am planing to use a 3 checkboxes e.g. (Yes, No, Maybe). Is it possible to make to if a user checks on one box e.g 'Yes' they cannot then check 'No and Maybe' i.e. disable two other boxes if one is selected for example.

 

If its possible I would appreciate your help. Thanks alot

Link to comment
https://forums.phpfreaks.com/topic/244490-php-check-box-validation/
Share on other sites

You wouldn't necessarily need javascript. You could validate server-side that only one checkbox is checked from each group and return an error otherwise. But at any rate, radio button arrays would probably be a better option for that application.

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.