Hi Manoj,
Now I am getting an error TypeError: Cannot read properties of undefined (reading ‘getContext’)
`
var destCtx = $(‘#’ + destId)
.get(0)
.getContext(‘2d’);
`
The error is on line 53 of the fiddle.
Here is a fiddle that helps to replicate this error.
https://jsfiddle.net/c5stbx86/1/