Being out of programming for several years, I'm attempting what I thought would be a relatively basic HTML form, and have come across several things I no longer know how to do.
First, I have a 5x10 table of checkboxes. Whenever any box is checked, I would like the same code to execute, (If 4 checkboxes are already checked, throw an error, otherwise continue).
How do I get this code to run on all checkboxes without needing to add an "onclick" to every individual button?
Second, when a checkbox is selected, I would like to change the background color of the element it is contained within.
And finally, is there an easy way to replace the checkbox image with a numbered ball or labeled button?
As requested, my code, so far, is here: https://www.dropbox.com/s/mem6egamsojq18g/DrawTicket.html