Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Radio Buttons  RSS feed

 
jacobfreaking harris
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you make it so that you can select 2 buttons in a radio button group? for example: If I have 7 radio buttons, and I want to be able to select 2 of the 7 instead of 1.
 
Jean Stu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
radio button dont do that(i understand), you should consider checkboxes
 
jacobfreaking harris
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jean Stu wrote:radio button dont do that(i understand), you should consider checkboxes
Well then, how would I make it so you can only click 2 of the 7 checkboxes?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jacobfreaking harris wrote:
Jean Stu wrote:radio button dont do that(i understand), you should consider checkboxes
Well then, how would I make it so you can only click 2 of the 7 checkboxes?

Keep a track of the check boxes being selected. Allow 1 check. Allow 2nd check. On 3rd check, uncheck the 1st and allow 3rd check and so on.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!