Advertisement
Guest User

dupa

a guest
Dec 12th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.03 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <title>Untitled Document</title>
  6.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
  7.     <script>
  8.     $(document).ready(function() {
  9.         var $hiddenNo = $('.first');
  10.         $hiddenNo.on('click', function (e) {
  11.             console.log("fire");
  12.             $(this).hide();
  13.             $(this).next().show();
  14.         });
  15.  
  16.  
  17.       $('.number').toggle(function() {
  18.         $(this).find('span').text('XXXX');
  19.       }, function() {
  20.         $(this).find('span').text($(this).data('last'));
  21.       }).click();
  22.     });
  23.     </script>
  24. </head>
  25.  
  26. <body>
  27.     <p class="first">pierwszy</p>
  28.     <p class="second" style="display: none">drugi</p>
  29.     <p class="first">pierwszy</p>
  30.     <p class="second" style="display: none">drugi</p>
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement