Hobby programing to make an app to keep my learning record
I'm working on developing a web app to keep records of practicing for an English test.
This is a kind of hobby programming.
I use php to submit the record to the database.
I use jQuery to adjust appearance of checkboxes. What I want to get has been background color of the label changed when the checkbox for it is checked.
Like when the item 1,3 is selected out of the list 1,2,3,4 to look like:
1 2 3 4 instead of 1 2 3 4 .
In the afternoon when I was cording, my code wasn't work properly.
I intended to change the background color of the label for which the checkbox is checked.
The mistake I made was when I selected a checkbox, I immediately checked the parent element which is the label for the checkbox, then let the program check if the element I selected is 'checked'. Actually a label instead of a checkbox cannot be 'checked'.
It took me 15 minutes to notice this mistake.
This is a kind of hobby programming.
I use php to submit the record to the database.
I use jQuery to adjust appearance of checkboxes. What I want to get has been background color of the label changed when the checkbox for it is checked.
Like when the item 1,3 is selected out of the list 1,2,3,4 to look like:
1 2 3 4 instead of 1 2 3 4 .
In the afternoon when I was cording, my code wasn't work properly.
I intended to change the background color of the label for which the checkbox is checked.
The mistake I made was when I selected a checkbox, I immediately checked the parent element which is the label for the checkbox, then let the program check if the element I selected is 'checked'. Actually a label instead of a checkbox cannot be 'checked'.
It took me 15 minutes to notice this mistake.
Comments
Post a Comment