views:

23

answers:

2

I'm trying to use jQuery Beauty Tip as a "context menu". I want to open the beauty tip manually, and close it manually.

I use the trigger: 'none' option:

$('#example15').bt({
  trigger: 'none',
  contentSelector: "$('#example-15-content')",
  width: 400
});

But when I click outside the Beauty Tip, it hides.

How can I stop it from hiding, and use $('#example15').btOff() instead?

A: 

clickAnywhereToClose sounds like the option you're looking for:

    clickAnywhereToClose: true,     // clicking anywhere outside of the tip will close it 
piquadrat
A: 

There's a clickAnywhereToClose option (scroll to bottom) that defaults to true, just set it to false, like this:

$('#example15').bt({
  trigger: 'none',
  contentSelector: "$('#example-15-content')",
  width: 400,
  clickAnywhereToClose: false
});
Nick Craver
Thanks. It works, and I'm blind (apparently) :)
MartinHN