Skip to content

Tag: jquery

remove all next divs after a child

I have something like this : using this: This will hide only the content i marked on the code, means only childs of the same parent. I need to hide every single thing after productPage. Answer You should also go to parent and target the next divs.

Keep scroll position and save toggle after page refresh

A long content sub-page has multiple “read more” buttons done with jquery toggleClass. When a user click the “read more” button the content is showing and the page gets refreshed. (I need the page-refresh for various reasons). When the page gets refreshed, of course the content is not …