In my form I have checkboxes for days, Sunday through Saturday, field name is Days
I'm trying to check if day was selected then do something for that day ... lets say set day to number of the week it is, as I try to do here.
- for each selectedValue in input.Days
- {
- if (selectedValue == "Sunday")
- {
- day = 1;
- }
- if (selectedValue == "Monday")
- {
- day = 2;
- }
- // ... Tuesday ... Wednesday ... Thursday .... Friday ... Saturday ...
- alert "number: " + day;
- }
Read More