Is there a way to add a class when the element that I want to apply the class to comes into the viewport? Or when the bottom of the screen is a certai ...
Is there a way to add a class when the element that I want to apply the class to comes into the viewport? Or when the bottom of the screen is a certai ...
So I'm trying to set "active" class on a list item from bootstrap menu. I have my menu file separate from all other html files so I don't have to main ...
I am using BS ScrollSpy & wanted to add/remove a class to each section that is currently in view. Like "active" or "in-view" or similar. Is this p ...
This is an easy one I'm sure but I can't find anything searching or on Google. If I use or How can I prove this in the console? (So that I kno ...
I've got a shopping cart that produces the following code: When a user has an item, I would like the class .yipi added to .et-cart-info. When it's ...
My question add and amendment to a question previously asked: jquery hide all open divs and toggle The final answer does exactly what I want it to do ...
I am trying to active menu and sub menu whichever is active. If a sub menu is active, main of that should also be active. I put the script in a js ...
I build this scraping out the answers on stackoverflow. What i want to achive: For each .element in .element-wrapper add the class .visible with del ...
I have a site created using Joomla, and I've created a blog layout using masonry. Right now the columns are all using the same width so it's masonry w ...
I am teaching myself jquery. I am trying for the first time to change elements of the dom using jquery. Particularly I am trying to use the method add ...
When the key down function runs the first time it does what I expect and changes the first class to addBack. Every keypress after that has no effect. ...
On a product page in Drupal Commerce, some items have size options while others do not. I need to adjust the css for those select tags that have only ...
I don't see why this doesn't work - any help? I want it to pop up as I hover over the .hoveroverme div jQuery CSS HTML ...
i found a very simple javascript function for a slideshow (here). It works perfectly, but i want to change something about the control buttons. Right ...
This code below works. I am trying to also add that if the .hero-build-wrap already added the class to hero-build , and you click it again it removes ...
Some of my Fullcalendar events have links. The links point to either public webpages, pdf documents or webpages which are restricted access. I would ...
I have this code, if I add a class to the input and if I put a different value, the initial, it works for me but if I put: input type = "number" but ...
I am trying to add a class to a button based on the button value using the following code but no success: and Any help is appreciated. Thanks. ...
function showImage(imageSrc) { $('a.slideTabLinkBlock').removeClass('active'); alert($(this).attr('cla ...
I want to use jQuery to add "class" to the other rows and columns of the table based on the class first row and the first column. For example: My cur ...