Multiple jqScribble doesn't work properly in the same page.
Closed this issue · 2 comments
herakles86 commented
I put two jaScribble in the same html page.
<body>
<div id="emp_sig" style="border:1px solid red; width:80px; height:20px"></div>
<div id="cust_sig" style="border:1px solid red; width:80px; height:20px"></div>
</body>
$("#emp_sig").jqScribble();
$("#cust_sig").jqScribble();
when I drawn in the first canvas, the image appeared in the second one.
jimdoescode commented
The way to have multiple instances is to use multiple selectors
$("#emp_sig, #cust_sig").jqScribble();
herakles86 commented
I find that I am using the old version which I got from jquery website.
now i download the latest version, it works.
Thank you.