Remove a Tooltip

Go down

Solved Remove a Tooltip

Post by Ace 1 on October 23rd 2016, 2:32 am

When you're creating a tooltip, the function is
Code:
$(element).tooltipster()

How do you remove a tooltip though? (removing the class doesn't work)


Last edited by Ace 1 on October 24th 2016, 12:30 pm; edited 1 time in total
avatar
Ace 1
Helper
Helper

Male Posts : 842
Reputation : 63
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: Remove a Tooltip

Post by Luffy on October 23rd 2016, 11:07 pm

@Ace 1 wrote:When you're creating a tooltip, the function is
Code:
$(element).tooltipster()

How do you remove a tooltip though? (removing the class doesn't work)
Hello @Ace 1,

Where exactly is this located and is it a tooltip with a javascript? If yes then i would suggest maybe this:
Code:
$(element).tooltipster({ display: none });
avatar
Luffy
Manager
Manager

Male Posts : 5560
Reputation : 617
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Remove a Tooltip

Post by Ace 1 on October 23rd 2016, 11:22 pm

@Luffy I actually want to remove the tooltip entirely. Like if I were to use this jQuery:

Code:
$('a').tooltipster();

I want a function that will remove the tooltips from those
Code:
<a>
tags.

Also, your code didn't work.
avatar
Ace 1
Helper
Helper

Male Posts : 842
Reputation : 63
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: Remove a Tooltip

Post by Luffy on October 23rd 2016, 11:25 pm

Have you tried (?) :
Code:
$('a').tooltipster('destroy');
avatar
Luffy
Manager
Manager

Male Posts : 5560
Reputation : 617
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Remove a Tooltip

Post by Ace 1 on October 24th 2016, 12:30 pm

No I haven't. This works, especially well with

Code:
$('a').removeAttr('title');

Thank you @Luffy
avatar
Ace 1
Helper
Helper

Male Posts : 842
Reputation : 63
Language : English - French?
Location : Druid Hill Park

https://help.forumotion.com

Back to top Go down

Solved Re: Remove a Tooltip

Post by APE on October 24th 2016, 12:31 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules



avatar
APE
Administrator
Administrator

Male Posts : 12494
Reputation : 1308
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum