Destroy binding between jquery function and my object?

If I use some really simple code, for example:

$('#elm').tipTip();

It will do what the plugin is intended for. Is there a way to destroy this binding to the plugin tipTip()will not be associated with this element for a long time?

UPDATE

The reason is that I don’t want to stop the hints from pop-ups, I have one main data div that the user sees, and as they click on the contents from the hidden divs, it moves into it with a strange transition.

The plugin works fine once, but then if I delete the content and add it back again (click something else and then again), they do not work.

I figured it was best to remove the entire plugin binding for the plugin from my element, and then start over again each time the content is moved to the field, maybe not.

+3
source share
2 answers

First of all, if you ask such a question, it would be nice if you included a link to the plugin that you are using. Does this mean TipTip , what do you mean? If yes:

As far as I can see, this plugin does not have built-in functions for "destroying" the already created TipTip object. (At least this is not mentioned in the documentation, and the source code also does not offer this during a quick check).

, , , , . , , .

.

$('#elem').unbind('hover');

:

  • ,
  • TipTip ,
  • , hover

TipTip, DOM, .

$("div[id^=tiptip_]").remove(); //remove the tiptip holder/content/arrow divs
+4

, tipTip() , .

+1

Source: https://habr.com/ru/post/1737892/


All Articles