JavaScript event handler function not working when i supply string to its parameter list
<p>im trying to pass the variable "image" to the onclick event handler function. When "image" variable is something like "1111" it works, but when i give some string value to it like "11sfrl" or just pure string without numeric characters, the event handler function is not called then. I've tried to wrap it to double quotes on the parameter list but didn't help.</p>

<pre><code>image="ssss";
element4 = $('&lt;div id="elem'+element.id+'" style="position:absolute;width:38px;height:24px;left:123px;margin:2px;border-width:1px;border-style:solid;border-color:red;" onclick="deletefromcart(this.id,'+image+');"&gt;&lt;/div&gt;').appendTo(element);
</code></pre>
