Adding HTML code with Single Quotes inside jQuery
<p>I am trying to add this HTML/JavaScript code into a jQuery variable. I've managed to insert double quotes by writing is with a backshlash <code>\"</code>, however the same tactic didn't work for the single quotes:</p>

<pre><code>ajaxData += '&lt;div class=\"menu-item-' + $(this).attr('div') + 'onclick=\"alert('Jquery Function');\"&gt;&lt;/div&gt;';
</code></pre>

<p>Specifically, this part <code>onclick=\"alert('Jquery Function');</code></p>

<p>Anyone know how I can go around this?</p>
