Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. function mobileDropDownChange() {
  2. $(".mobileTab").hide();
  3. $(".mobileTab" + $("#selMobileDropDown").val()).show();
  4.  
  5. if ($("#selMobileDropDown").val() == "1")
  6. location.hash = "-Overview";
  7. setActiveMobileDropDownOption("1");
  8. else if ($("#selMobileDropDown").val() == "2")
  9. location.hash = "-Experience";
  10. setActiveMobileDropDownOption("2");
  11. else if ($("#selMobileDropDown").val() == "3")
  12. location.hash = "-Activities";
  13. setActiveMobileDropDownOption("3");
  14. else if ($("#selMobileDropDown").val() == "4")
  15. location.hash = "-Recognition";
  16. setActiveMobileDropDownOption("4");
  17. else if ($("#selMobileDropDown").val() == "5")
  18. location.hash = "-Publications";
  19. setActiveMobileDropDownOption("5");
  20. else if ($("#selMobileDropDown").val() == "6" || GetQueryStringParams('pl') == "neTab") {
  21. setActiveMobileDropDownOption("6");
  22. location.hash = "-News";
  23. } else if ($("#selMobileDropDown").val() == "7")
  24. setActiveMobileDropDownOption("7");
  25. location.hash = "-Interests";
  26. };
  27.  
  28. function setActiveMobileDropDownOption(val) {
  29. $("#selMobileDropDown option").each(function() {
  30. if ($(this).val() == val) {
  31. $(this).prop("selected", true);
  32. }
  33. });
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement