Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 10th, 2012  |  syntax: JavaScript  |  size: 0.34 KB  |  views: 55  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $(document).ready(function(){
  2.         $('#clicky').click(function () {
  3.         $.each(bgmp.markers, function(index, obj) {
  4.                 $.each(obj, function(key, value) {
  5.                         //window.alert(key+':'+value);
  6.                         if (key == 'visible') {
  7.                                 //window.alert(obj['visible']);
  8.                                 obj.setVisible(false);                 
  9.                                 window.alert(obj['visible']);
  10.                         }
  11.                 });
  12.         });
  13.         });
  14. });
clone this paste RAW Paste Data