javascript - remove or unbind function on click? -
i have image zoom function. want able click zoom on , zoom off, enable zoom or disable zoom function.
i have working if click zoom on, cannot work out how remove function.
to destroy or taking-off zooming effect image can use following code apparently if helps.
$("img").image_zoomer("destroy"); this fiddle explain better.
https://jsfiddle.net/u5bn9dwr/3/
thanks!
you can use unbind() method $("img").unbind(); see: http://www.w3schools.com/jquery/event_unbind.asp
Comments
Post a Comment