سؤال

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