SHARE
TWEET

Untitled

a guest Jan 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="toggle">
  2.     <span id="down"></span>
  3.     <a id ="slide" href="#">Passende Produkte zum Gutschein</br></a>
  4.     <div id="inner">text tetxtext</div>
  5.  
  6.     <span id="down"></span>
  7.     <a id ="slide" href="#">Passende Produkte zum Gutschein</a>
  8.     <div id="inner">text tetxtext</div>
  9. </div>
  10.    
  11. $('a').click(function() {
  12.     $('#inner').slideToggle('fast');    
  13. });
  14.    
  15. #inner {
  16.     display:none;
  17. }
  18.    
  19. <div id="toggle">
  20.     <span class="down"></span>
  21.     <a class="slide" href="#">Passende Produkte zum Gutschein</br></a>
  22.     <div class="inner">text tetxtext</div>
  23.  
  24.     <span class="down"></span>
  25.     <a class="slide" href="#">Passende Produkte zum Gutschein</a>
  26.     <div class="inner">text tetxtext</div>
  27. </div>
  28.    
  29. $('a').click(function(event){
  30.    $(this).next('.inner').slideToggle('fast');
  31.    // $(this).siblings('.inner').slideToggle('fast');
  32.    event.preventDefault() // prevents the default action of event.      
  33. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top