MFAL
MFAL

Reputation: 1110

how to remove a jquery balloon plugin?

I am adding a balloon (http://file.urin.take-uma.net/jquery.balloon.js-Demo.html) object to an input filed under certain conditions but I cannot find a way to remove it dynamically (different conditions).

$(this).balloon({
   classname:"validationErrorBalloon",
   position:"top",
   contents: "wrong value"
});

Upvotes: 1

Views: 1160

Answers (2)

Prakash Rajagaopal
Prakash Rajagaopal

Reputation: 602

Balloon just attaches event handlers to it to do the functionality, it might be easier to just call off to remove it. The API doesn't seem to provide a clear way.

$(selector).off();

http://api.jquery.com/off/

Upvotes: 0

Suresh Atta
Suresh Atta

Reputation: 121998

Need not to remove manually

Give hide duration

$('.sample').balloon({
  showDuration: 1000, hideDuration: 500
});



$('.sample').balloon({
  hideDuration: "slow",
});

Upvotes: 0

Related Questions