« first day (1 day earlier)  last day (15 days later) » 

7:53 PM
hello, after 2 days tring and tring again, it's still not working, but I know where is the problem, but I don't know how to figure it out
your code works well, when I click on the 'apple' button, it minus 1 apple
so I tried to adapt in my code
but, as you made your button in the html, so you can select it in you js
and in my code, as the list 'apple x 1' is create by javascript, so they don't really exit, all their existence is depend on the click on the fruit
so when I do the same thing as you, put the 'minus' click function outside the 'fruit' click, jquery can't select the 'minus' tag. When I put the 'minus' click inside the 'fruit' click, then it can select 'minus'.
but in this case, I can only do one time 'minus' because it's inside the 'fruit' click, so I need to reclick the 'fruit' one more time to activate the 'minus' click, then I can click 'minus' one more time. That's not good.
So, how can I put the 'minus' click function outside the 'fruit' click, and I can still select the 'minus' tag, I think that's even not a js problem, maybe concern only html or css. What do you think?
 

« first day (1 day earlier)  last day (15 days later) »