Uncheck all checkboxes in repeater except checkbox being checked

Posted by Chris Laythorpe on Stack Overflow See other posts from Stack Overflow or by Chris Laythorpe
Published on 2010-03-26T11:06:02Z Indexed on 2010/03/26 11:13 UTC
Read the original article Hit count: 305

Filed under:
|
|
|
|

I know my question reads a bit like that 'how much wood can a woodchuck chuck' line, please excuse that...

I have a repeater with checkboxes. There are numerous rows in this repeater - I never know how many - I want only one checkbox checked at any time. If the user changes the checked checkbox, any pre-existing checks are unchecked therefore maintaining a single checked checkbox.

I am using VB, but comfortable to port any C#. I want to use JQuery. I have been looking on Google, but only ever seem to find ALL checked, ALL unchecked systems.

Any suggestions?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about c#