Hi - In the following jsFiddle, I have some code to handle change events for checkboxes in a treeview:
jsFiddle
I'm wondering if there's a way inside the event handler to get a reference to the checkbox that triggered the event? It seems like when checkChildren is enabled, it's possible for the change event to fire multiple times if checking a child triggers the checking of a parent (ie, the child was the last unchecked checkbox under the parent) so I need to evaluate the specific checkbox that raised a change event to determine whether or not to run additional code.
Thanks!
jsFiddle
I'm wondering if there's a way inside the event handler to get a reference to the checkbox that triggered the event? It seems like when checkChildren is enabled, it's possible for the change event to fire multiple times if checking a child triggers the checking of a parent (ie, the child was the last unchecked checkbox under the parent) so I need to evaluate the specific checkbox that raised a change event to determine whether or not to run additional code.
Thanks!