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?

有帮助吗?

解决方案

Try to use:

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

其他提示

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(); 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top