Uncaught SyntaxError: Invalid or unexpected token in JavaScript
<p>I am getting this error message at the console for line:</p>

<pre><code>var dataString = \'search=\'+ searchid;
</code></pre>

<p>at following script:</p>

<pre><code>$(function(){
    $(".search").keyup(function() { 
        var searchid = $(this).val();
        var dataString = \'search=\'+ searchid;
        if(searchid!=\'\') {
            $.ajax({
                type: "POST",
                url: "classes/search.php",
                data: dataString,
                cache: false,
                success: function(html) {
                    $("#result").html(html).show();
                }
            });
        }
        return false;    
    });
});
</code></pre>

<p>What is wrong there?</p>