Escaping quotes in jquery
<p>I'm having a bit of a problem escaping quotes in the following example:</p>

<pre><code>var newId = "New Id number for this line";

$(id).html('&lt;td&gt;&lt;input type="text" id="my' + newId + '" onKeyUp="runFunction("#my' + newId + '");"&gt;&lt;/td&gt;');
</code></pre>

<p>The issue is that when I look at the generated code the id does update to <code>id="myNewId"</code>, but in the function call it looks like this:</p>

<pre><code>onkeyup="runFunction(" #row2="" );=""
</code></pre>

<p>What exactly am I doing wrong? </p>
