Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <script>
  2.       $(document).ready(function() {
  3.         $('.show-phone').on('click', function(){
  4.           $.ajax({
  5.  
  6.             url: '../config/contact_settings.php',
  7.             data: {action: 'phone'},
  8.             method: 'POST',
  9.  
  10.             success: function(result) {
  11.               $('.phone-number').html(result);
  12.             }
  13.  
  14.           });
  15.         });
  16.  
  17.         $('.show-email').on('click', function(){
  18.           $.ajax({
  19.  
  20.             url: '../config/contact_settings.php',
  21.             data: {action: 'email'},
  22.             method: 'POST',
  23.  
  24.             success: function(result) {
  25.               $('.email-address').html('Skrzynka e-mail: ' + result);
  26.             }
  27.  
  28.           });
  29.         });
  30.  
  31.       });
  32.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement