Results 1 to 4 of 4
Dec 4, 2007, 12:50 #1
Restricting # of ChkBoxes checked in multiple columns
I will have 5 columns of data for users to choose from. Each column will have 10 options, with checkboxes next to eachone. the user must select no more and no less than 2 checkboxes from each column. a total of 10 checked (2 from each column)
this is a .net 2 website, but think JS is the way to go for this issue.
I have found some solutions for restricting the number of boxes checked within a single list of data within a page, but not with multiple columns of data.
any ideas or suggestions would be great.
Dec 4, 2007, 13:03 #2
It's the same deal; run the checkboxes through a loop and make sure two are selected for validation. JS only works on the client, I'd validate with asp too.
Dec 4, 2007, 14:41 #3
- Join Date
- Oct 2003
- Mountain View
- 0 Post(s)
- 0 Thread(s)
Here, I whipped this up.
If you want to change the limit, simply change the limit number that is passed into 'applyCheckLimit'. Also, be sure to read the code carefully so you know what's going on and can tweak it to your own needs. Cheers
Dec 5, 2007, 08:37 #4
polvero, that works pretty slick thanks.