Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. <script>
  2. jQuery(document).ready(function($) {
  3. var clear = $('.video-nav h5'); //topic
  4. var first = $('.video-nav ul li:nth-child(1) a'); //starting
  5. var second = $('.video-nav ul li:nth-child(2) a'); //mortgage
  6. var third = $('.video-nav ul li:nth-child(3) a'); //financing
  7. var fourth = $('.video-nav ul li:nth-child(4) a'); //credit-closing-federal-programs
  8. var fifth = $('.video-nav ul li:nth-child(5) a'); //selling
  9. var sixth = $('.video-nav ul li:nth-child(6) a'); //trd
  10.  
  11. $( clear ).click(function() {
  12. $( "#starting" ).show();
  13. $( "#mortage" ).show();
  14. $( "#financing" ).show();
  15. $( "#credit-closing-federal-programs" ).show();
  16. $( "#selling" ).show();
  17. $( "#trd" ).show();
  18. });
  19. $( first ).click(function() {
  20. $( "#starting" ).show();
  21. $( "#mortage" ).hide();
  22. $( "#financing" ).hide();
  23. $( "#credit-closing-federal-programs" ).hide();
  24. $( "#selling" ).hide();
  25. $( "#trd" ).hide();
  26. });
  27. $( second ).click(function() {
  28. $( "#mortgage" ).show();
  29. $( "#starting" ).hide();
  30. $( "#financing" ).hide();
  31. $( "#credit-closing-federal-programs" ).hide();
  32. $( "#selling" ).hide();
  33. $( "#trd" ).hide();
  34. });
  35. });
  36. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement