Moncho Chavez
Moncho Chavez

Reputation: 694

tooltip remove to just one function

I need to do this

$('.tooltip').remove(); 

but just for this class.

$('.fav[title]');

I have tried

$('.fav[title]').('.tooltip').remove(); 

or

$('.fav[title] tooltip').remove(); 

Both are obviously wrong, how the syntax for this?

Upvotes: 1

Views: 45

Answers (2)

Felix
Felix

Reputation: 38102

Try to use:

$('.tooltip.fav[title]').remove(); 

Upvotes: 1

Arun P Johny
Arun P Johny

Reputation: 388316

I think what you need is to remove the .fav[title] which is having the tooptip class, if so then try

$('.fav.tooltip[title]').remove(); 

Upvotes: 1

Related Questions