Skip to content

Instantly share code, notes, and snippets.

@lenagroeger
Created August 29, 2012 19:23
Show Gist options
  • Save lenagroeger/3517540 to your computer and use it in GitHub Desktop.
Save lenagroeger/3517540 to your computer and use it in GitHub Desktop.
homeowner map click/show function
CSS:
.blurb {
width:200px;
height:60px;
background:#444;
color:white;
display:none;
}
HTML:
<div class="blurb-MA blurb">
BLAH BLAH BLAH ABOUT MASS
</div>
<div class="blurb-TX blurb">
BLAH BLAH BLAH ABOUT TEXAS
</div>
<div class="blurb-CA blurb">
BLAH BLAH BLAH ABOUT CALIFORNIA
</div>
JAVASCRIPT:
var current = it.key;
$(".blurb").hide();
$(".blurb-"+current).show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment