Question

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?

Was it helpful?

Solution

Try to use:

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

OTHER TIPS

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(); 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top