3
Well I remove CSS from a certain element like this:
$('#menu' + this.id + '').removeClass('open');
What I need to do and remove from all elements #menu
less that of the informed.
I tried to do so:
!$('#menu' + this.id + '').removeClass('open');
But it didn’t work.
I have several #menu
as #menu1
,#menu2
. Since they do not repeat themselves in html.
I need to remove CSS from everyone but the #menu
informed.
Someone knows how to do it?
Can you show more of the code/functionality you want to do? So we adapt our answers more to your reality.
– Sergio
@Sergio ok, to make it easier I posted all the code. Well right click on
<tr>
from the table that will open a menu, I need to make it close when I click the bottom line. https://jsfiddle.net/zj2sbpny/– Hugo Borges
Is that the way you want it? https://jsfiddle.net/d733a9ox/
– Sergio
+/-, how re removed the
setTimeout
the effect gets sucked, give a look when the table gets bigger https://jsfiddle.net/d733a9ox/1/. You have to have thesetTimeout
to wait for the effect to end and then remove the position of the div.– Hugo Borges