Advertisement
NecromancerCoding

Javascript Perfil Pestañas

May 5th, 2019
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. $(document).ready(function(){
  2. $('.msnubcampos').click(function(){
  3. $(this).each(function(){
  4. $(this).addClass('msnuactivo');
  5. $(this).siblings('.msnubrpg, .msnubcon').removeClass('msnuactivo');
  6. $(this).parent().siblings('.msnucampos').show(500);
  7. $(this).parent().siblings('.msnurpg, .msnucon').hide(500);
  8. });
  9. });
  10. $('.msnubrpg').click(function(){
  11. $(this).each(function(){
  12. $(this).addClass('msnuactivo');
  13. $(this).siblings('.msnubcampos, .msnubcon').removeClass('msnuactivo');
  14. $(this).parent().siblings('.msnurpg').show(500);
  15. $(this).parent().siblings('.msnucampos, .msnucon').hide(500);
  16. });
  17. });
  18. $('.msnubcon').click(function(){
  19. $(this).each(function(){
  20. $(this).addClass('msnuactivo');
  21. $(this).siblings('.msnubcampos, .msnubrpg').removeClass('msnuactivo');
  22. $(this).parent().siblings('.msnucon').show(500);
  23. $(this).parent().siblings('.msnucampos, .msnurpg').hide(500);
  24. });
  25. });
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement