Ryan Turney

Ryan Turney

  • NA
  • 245
  • 208.9k

RadioButton Table Cells

Oct 4 2007 5:05 PM

Hello everyone, I'm a little confused on how to do this: I am generating tables with a user inputted number. This is all done within a C# file and not in a aspx webpage. When the mouse pointer goes into tableCell it calls tableCell.Attributes.Add("onmousedown", "this.style.backgroundColor = '#564356';"); Now, I have 4 of these generated cells. How can I make these 4 cells work as 4 radio buttons that are assigned to the same group?

For example. I click on cell 1 then I decide to click on cell 4, the color will change on cell 4 and reset cell 1 to white like a radio button would become unchecked.

Thank you,
Ryan