Modal popup does not work when link is inside of info window
<p>I use JQmodal plugin for jquery to create popup on my page.</p>

<p>It works fine like this: 
1 Calling popup</p>

<pre><code> $().ready(function() {
  $('#dialog').jqm();
});
</code></pre>

<p>2 Link to fire popup: <code>&lt;a href="#" class="jqModal"&gt;view&lt;/a&gt;</code></p>

<p>It does not work though when I try to place this link inside info window on google maps. like this:</p>

<pre><code> google.maps.event.addListener(map, 'click', function(event) {
document.getElementById("Y").value = event.latLng.lat();
document.getElementById("X").value = event.latLng.lng();
 map.setOptions({ draggableCursor: 'hand' });
    var html = "Are you sure you want to submit your moment here? &lt;br/&gt;&lt;a href=\"#\" class=\"jqModal\"&gt;Submit Here&lt;/a&gt;";
    infoWindow.setContent(html);
    infoWindow.setPosition(event.latLng);
    infoWindow.open(map); });
</code></pre>

<p>I cannot figure out why the link does not owrk in the second case(although it it shown. it just redirects me to "#", ie. nowhere.</p>

<p>Thanks!</p>
