How to Solve this "missing ) argument after list"?
<p>This looks like a trivial question, but I am not sure how to deal with it. I have a <code>DIV</code> tag generated from javascript that goes like this:</p>

<pre><code>$('#results')
 .append('&lt;DIV id='
 + A.pid
 + ' onmouseover=function(){google.maps.event.trigger(marker, 'mouseover');};&gt;&lt;H3&gt;'
 + A.name
 + '&lt;/H3&gt;&lt;/DIV&gt;');
</code></pre>

<p>Firebug is giving me an error "<strong>missing ) argument after list</strong>" as it does not recognise the <code>)</code> immediately after <code>'mouseover'</code>. How do I resolve this?</p>

<p><strong>UPDATE:</strong></p>

<p>I understand this is about escaping quote, just that doing <code>\'mouseover\'</code> produces a syntax error upon mouseover of the <code>DIV</code> and doing <code>"mouseover"</code> produces a blank document.</p>

<p>The syntax error reads: <em>function(){google.maps.event.trigger(marker,</em></p>
