Uncaught SyntaxError passing multiple values to function
<p>I am trying to call a function, but am running into some struggles with properly escaping the values and passing it properly. I currently have:</p>

<pre><code>function selectdone(sel, title_id, status_type) {
...
}

$(function() {


$("td.status-updates").click(function() {
    if ($(this).find('#sel').length == 0) {
        var before = $(this).text();
        var title_id = $(this).parent().attr('id');
        var status_type = $(this).attr('class');
        $(this).html("&lt;select id='sel' 
            onchange='selectdone(this," + title_id + "," + status_type +");'...
                                                &lt;option&gt;NS&lt;/option&gt;&lt;/select&gt;");
    }

});
</code></pre>

<p>The error I keep getting from this is <code>Uncaught SyntaxError: Unexpected identifier</code>. </p>

<p>However, if I pass it as <code>'selectdone(this," + title_id + ");...</code> it works, but if I try and pass three it raises that error.</p>

<p>Note: there are spaces in the <code>status_type</code> variable (multiple classes).</p>
