Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* displayHousing(id) displays sets the id_content div's z-index to 1, and all other id's _content
  2.  *div's z-index to 0;
  3.  */
  4. function displayHousing(id){
  5.     for(var element in $('#housing_navigation').children()){
  6.         if(id == element.getAttribute('id')){
  7.             $('#' + id + '_content').css('z-index', 1);
  8.         }else{
  9.             $('#' + id + '_content').css('z-index', 0);
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement