Friday, January 31, 2014

How can I put checkboxes into an array and use FOR LOOP to add value to a total when a user check the box

Basically I am trying to make a app that is named computer store and It ask the user what kind of computer they would like to purchase and also I have customizable specs such as ram and monitor size and when the user checks these checkboxes it adds its price to a double called total I would like to know is there a way I can create a for loop with an array of checkboxes that can check to see if the user has check anything and If they did it would automatically add its value to the total and i would like to do this with one if statement that would be inside of the for loop

No comments:

Post a Comment