I have a jQuery function, when a box is clicked that affects many other elements on the page ( Creates a slideshow Divs group) There are several boxes on the page and whenever the box is clicked again, again the normal function needs to be reset to the affected elements by the function. Is there an easy way to reset the elements affected by jQuery, or the original In order to run the opposite function vs. the function, to write another function, which tells about the first function?
An easy way to do what you describe is JQuery Use CSS classes to encapsulate all the changes that apply. Your first function uses addClass to implement changes and then you can use
removeClass to return the changes.
Comments
Post a Comment