0
I have a problem.
When I clicked on any then all tab show present so this is my problem. my code is here https://code.sololearn.com/WCVJd11hYm9x/?ref=app
1 Respuesta
+ 2
[partial analysis, for someone to assist / you to explore :) ]
I suspect you'd have better luck removing the setInterval* and adding an action to a "changed" hook (someone check me), because that lets you refer to a variable called "this", which is the current event context.
Currently I believe your selectors grab all contexts $("label") if ANY context is checked, while I'm suggesting the $( this ) pattern.
* JS is event-driven; setInterval could work with more code, but JS is designed to push events (not really to be polled for changes)