Insert javascript variable between string
<pre><code>&lt;script type="text/javascript"&gt;
$('#did').html('&lt;input type="submit" name="mybtn" value="Save" onClick="saveContent('+valA+')"&gt;');
function saveContent(con){
 alert (con);
}
&lt;/script&gt;
</code></pre>

<p><em>I am using this code to display a submit button and it comes to the page body. but when clicked on the button it is not alerting the value. Please help me... 
Thanks</em></p>
