In jQuery, we can add CSS classes to multiple elements, but with the element already cached in a variable, how can we perform the same operation?
Example:
// adicionar classe a ambos os elementos
$('#myEle, #anotherEle').addClass('johnDoe')...
I have a problem here and I do not know how to solve, in theory, my function below 768px was to add the class .navbar-inverse to the tag nav , and above 768px is to remove it case exists, but nothing happens.
Edit:...
I have a menu that goes down along with the scroll. I used Jquery to add css attributes for this to occur.
I do not want this to happen when the site has less than 768px of width. So let it be stopped
Media queries did not help me resolve bec...
I have the code below and I'm trying to get the li elements to get with the active class depending on scroll (parallax effect ), everything works well (click functions for the scroll) except that. If you know better, please share...
I have a website that in css, have these statements for the body:
body {
background: #fab52d;
font-family: Montserrat, Helvetica, Arial, sans-serif;
font-size: 1.6rem;
color: #FFFFFF;
overflow: hidden;
}
In the followi...
Here's a demonstration of what I'm trying to do ..
HTML
<div id="conteudo">
<div id="inner" class="move">
<div class="col-md-10"><a class="botao" href="#">botao</a></div>
<div class=...
I would like to apply the following function in a project.
When clicked on the button (which applied, it will be the menu button) the entire content of the site that is inside the CONTEUDO-MOVEL div should go to the left hiding a part...
I need to create a click () function for 8 links that are in pagina X , each link will take me to a specific slide in a pagina Y .
The slide is active when it is with Class selected , so my idea is as follows:
The user cl...