text replace with jquery
<p>So im using jquery to search and replace certain text in my html page. Which is:</p>

<pre><code>function offon(){
  $("#sidebar li").each(function(){
     $(this).html($(this).html().replace(/Off Premise/, "Liquor Store"));
     $(this).html($(this).html().replace(/On Premise/, "Bar/Restaurant"));
  });
}
</code></pre>

<p>This is the createmarker function, it uses a 3rd part tooltip the div is "simple_example_window" that contains all the html. I tried using simple_example_window for the div in the offon function but it did not do anything. </p>

<p><a href="http://gmaps-utility-library-dev.googlecode.com/svn/trunk/extinfowindow/docs/examples.html" rel="nofollow">http://gmaps-utility-library-dev.googlecode.com/svn/trunk/extinfowindow/docs/examples.html</a>
is the plugin.</p>

<pre><code>function createMarker(point, name, address, type) {
var marker = new GMarker(point, customIcons[type]);
  markerGroups[type].push(marker);
var html = '&lt;span class="name"&gt;&lt;b&gt;' + name + '&lt;/b&gt;&lt;/span&gt; &lt;br/&gt;' + address + '&lt;br/&gt;' +     type;
GEvent.addListener(marker, 'click', function() {
    marker.openExtInfoWindow(
      map,
      "simple_example_window",
     html,
      {beakOffset: 2}
    );
</code></pre>

<p>It works like a charm. The only problem now is my tooltips in google maps are not changing.</p>

<p>Any ideas?</p>
