Does anybody know javascript farely well?

Hey all,

just a question to find out if its possible to do the following…

I have 4 checkboxes and i only want the user to select 2 at any given time…is that possible??

essentially i need it to be so that when the user selects any 2 choices the other 2 options are disabled or set to Boolean = false;
I believe that it can be done through a series of if or else statements but i have had some peeps trying to say it can’t be done

Cheers peeps :slight_smile: