innerHTML passing variables as parameters in onClick event
<p>I have to pass a variable as a parameter in a onclick event using innerHTML. Here's my code</p>

<pre><code>var seriesdel = document.getElementById('series_name').value;
document.getElementById('all_series').innerHTML +="&lt;p&gt;"+document.getElementById('series_name').value+" &lt;button class='button' id='delete' onclick='deleteseries("+seriesdel+");' value='Delete'&gt;Delete&lt;/button&gt;&lt;/p&gt;";
</code></pre>

<p>As you see, I try to pass the variable "seriesdel" in the function "deleteseries" but I just can't make it works.</p>

<p>Thank's for your help.</p>