jQuery SyntaxError: Unexpected token =
<p>I am trying to pass a bunch of variables to a hidden input value but I am getting a stupid syntax error in this code:</p>

<pre><code>$('#imgdata').append(   
    '&lt;input type="hidden" name="imgdata[' + id + '][width]" value="' + _width + '"/&gt;
     &lt;input type="hidden" name="imgdata[' + id + '][height]" value="' + _height + '"  /&gt;
     &lt;input type="hidden" name="imgdata[' + id + '][left]" value="' + _left + '"  /&gt;
     &lt;input type="hidden" name="imgdata[' + id + '][top]" value="' + _top + '"  /&gt;
     &lt;input type="hidden" name="imgdata[' + id + '][src]" value="' + _src + '"  /&gt;'
 );
</code></pre>

<p>I must be overlooking a simple syntax mistake. Console tells me its in 3rd line. </p>

<p>SOLUTION:</p>

<p>The issue was with the line-wrapping. Making the code inline without pressing enter for formatting fixed it.</p>
