Enable jquery panzoom on some event

357 Views Asked by At

I'm using a jquery plugin that allows zooming and pan functionality, however I want this to be done only at some event( say when checkbox is clicked) because after having it by all the time, the default functionalities are getting affected which are through another plugin.

Thanks in advance.

1

There are 1 best solutions below

0
On BEST ANSWER

It can be done something like this,

$("#ID").panzoom("disable"); - To disable panzoom for this element

$("#ID").panzoom("enable"); - To enable panzoom for this element