I am looking for the "full tested code" for the following piece for my application
[url removed, login to view]
When form load Class 1, Class 2, and Class 3 has 15 available registeration seats
If user selects the Class 1 from the drop down list... and register say 2 seats in next transaction only 13 seats should be left for class 1....
in next transaction if user select class 2 and select say 15 seats in next trans none of the available seats should show up for class 2...
I don't want to use state, db, for this project... want to implement using arrays and data stored in form
when user refreshes the browser everything comes back to initial values