×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Lori DK
Added: May 29, 2017 4:32 PM
Views: 7
https://stackoverflow.com/questions/28034638/hide-div-on-certain-pages-using-jquery
  1.      if (window.location.pathname == "mywebsite/Videos.html"||window.location.pathname == "url2.html"||window.location.pathname == "url3.html") {
  2.             $('#navleft').hide();
  3.       } else {
  4.             $('#navleft').show();
  5.       }