Advertisement
oscarviedma

jQuery Animales Salvajes

Jun 24th, 2021 (edited)
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <script>
  2. jQuery(function($){
  3.  
  4. $('[id*="mostrar-info-item"]').click(function() {
  5. var selector1 = $(this).attr('id').replace('-item', '');
  6. var $info = $('#' + selector1);
  7.  
  8. $info.show().siblings().hide();
  9.  
  10. $('[id*="mostrar-info-item"]').removeClass("menu-item-activo");
  11. $(this).addClass('menu-item-activo');
  12.  
  13. });
  14. });
  15. </script>
  16.  
  17. <script>
  18. // Activar las imagenes
  19. jQuery(document).ready(function($){
  20.  
  21. $('#mostrar-info-item-1').on({
  22. 'click': function(){
  23. $('.columna-imagen').css('background-image','url(#)');
  24. }
  25. });
  26.  
  27. });
  28. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement