toggle - jquery capture onToggle -
I have set the DIV and I present the checkboxes in each of them. Number of DIVs and number of checkboxes are dynamic Each device has a button associated with it, which will change the visibility of that specific DIV.
Every time the user clicks the checkbox, I need to display the text in that checkbox in a label. I am thinking that I attach an event to the toggl event of DIV so that when a Divi becomes, I can tie a function on the click event on the check box of that section which will display the text of the clicked checkbox.
I am struggling to find a way to capture when the divi becomes visible or invisible
If you want to bind event handlers / actions at any time:
Code> $ ("div # thecontainerId") (":" Visible) .each (function (/ * do something * /));
If you want to force some other action (except hide / show) during toggles, then do this:
$ ( ". ToggleTarget"). Toggle (function () {$ (this). Round (); / * Add more actions here *, function () {$ (this). Show (); / * Add more actions here;
Comments
Post a Comment