Relative Content

Tag Archive for jquery

Edit checkbox the last deactivates the others

I’m editing a form that unfortunately comes out of the plugin like this and I can’t edit html. I would like the last checkbox to deselect the other two fields if clicked. In my example it works partially, in the sense that the last one deselects correctly if only one of the others is clicked instead I would like it to be able to click 1 and 2 or No ALL (disabling the others). Thanks for any suggestions

Mystery issue with switching classes jQuery

Got a nice little accordion going here which uses headings to expand and collapse content below. Everything works the way I want it to, except for one thing: when you expand a section by clicking on the heading, you should be able to click on the heading again to collapse it. What’s wrong with this picture?

Target only top level headings jQuery

OK, I have some code that looks like this, and I want to target only the headings which are inside a container, but not inside another container inside of it (if that makes sense). Currently it catches them all. How do I change that? I know about the “not” selector, but I’m not sure how to tell jQuery “target headings inside haccordion, but not if they are inside something inside of that”.

scrollTop does not work only on mobile devices

I am experiencing problems in the mobile version. From desktop to scroll the video starts correctly but from mobile it doesn’t work. Searching I also found this question but it did not lead to the solution. I appreciate any suggestions, thank you

scrollTop does not work only on mobile devices

I am experiencing problems in the mobile version. From desktop to scroll the video starts correctly but from mobile it doesn’t work. Searching I also found this question but it did not lead to the solution. I appreciate any suggestions, thank you

Replace round brackets and its content

I’m trying to replace some strings within round brackets. I’m able to replace the round brackets but not the text in it. The text is variable and not always the same, e.g. (9 seats free), (6 seats free) and so on. How can i solve it to replace both, brackets and its content?

Replace round brackets and its content

I’m trying to replace some strings within round brackets. I’m able to replace the round brackets but not the text in it. The text is variable and not always the same, e.g. (9 seats free), (6 seats free) and so on. How can i solve it to replace both, brackets and its content?