I have set of DIVs and i render CheckBoxList in each of them. Number of DIVs and number of CheckBoxLists are dynamic. Each div has a button associated with it which will toggle the visibility of that particular DIV.
Every time user clicks on a checkbox, i need to display the text of that checkbox in one label. I am thinking that i shud attach an event on the DIV's toggle event so that when the div becomes visible, i can bind a function on the click event of checkboxes inside that div which will display the text of clicked checkbox.
I am struggling to find a way to capture when the div becomes visible or invisible. How do i know which div is being displayed at a given time?
Is there any other way to do this?