Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
F

flexi2202

@flexi2202
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to show or hide a div with only class without ID
    F flexi2202

    hello you are the best a very big roof thank you, it's great it works wonderfully

    JavaScript

  • How to show or hide a div with only class without ID
    F flexi2202

    thank you very much for the explanations and the code But when I click on "retirer du panier" the button no longer disappears

    JavaScript

  • How to show or hide a div with only class without ID
    F flexi2202

    Excuse me for disturbing you. I just tried the code on my site, but I have a little compatibility problem with what already exists on my site. maybe you could help me When I add an item to my cart I have an animation that drives the item into its shopping cart. for your code to work I have to deactivate part of my code from line 29 to 34, but in this case I no longer have my animation Could you help me please testaffichercacher - JSFiddle - Code Playground[^]

    JavaScript

  • How to show or hide a div with only class without ID
    F flexi2202

    a very big thank you, really thank you for this code on first try it works great I'm going to do a bigger test. I'll keep you informed

    JavaScript

  • How to show or hide a div with only class without ID
    F flexi2202

    thank you for the answer and the help, it's appreciated this works perfectly fine to display "retirer panier" But how to hide "retirer panier" when you click on "retirer panier"

    JavaScript

  • How to show or hide a div with only class without ID
    F flexi2202

    hello I have a problem I have a purchase order with 500 items, in this example I only put 3 items When I add an item to the cart I would like to be able to display the panel div but just for the item that was put in the cart with the ajouter au panier button But when I click on retirer du panier I want the button to disappear

       ajouter au panier
                       
    
                     
    
                       retirer panier
                         
                     
    
                     ajouter au panier
                      
    
                     
    
                       retirer panier
                         
                     
    
                     ajouter au panier
                       
    
                     
    
                       retirer panier
    

    function myFunction() {
    var a = document.querySelectorAll(".panel[style*='display:none']");
    console.log ("display",a)
    a[0].style.display ='block';
    }

    function myFunction2() {
    var b = document.querySelectorAll(".panel[style*='display:block']");
    console.log ("display",b)
    b[0].style.display ='none';
    }

    JavaScript
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups