Pass uploaded file as a parameter to javascript method
<p>I am passing the uploaded file as a parameter in the JavaScript method. Then Firebug is throwing error like <code>SyntaxError: illegal character</code>.</p>

<pre><code>&lt;input type="file" id="fileUpload" name="employerLogoUpload" /&gt;

&lt;a id="_fileUploadLink" href="#" onClick="javascript:ajaxFileUpload(" +document.getElementById('fileUpload').value+ ");"&gt;Upload&lt;/a&gt;
</code></pre>

<p>Please help me out.</p>
