badwolfff
asked on
How do I hide an element using jQuery?
I am trying to hide a particularly stubborn element through jQuery but I am not succeding.
URL: http://temp.organization.e vents/even t/a-tutto- anca
If you scroll towards the bottom of the page there are several similar items. Each has two buttons below: "Approfondisci" and "Scopri i relatori". Basically I want every first button with text: "Approfondisci" in it to be hidden always.
The code I am trying to use is:
I even separately tried via css: a:contains('Approfondisci' ){display: none;}
but that doesn't work either.
What am I doing wrong? Please assist.
Thanks in advance
URL: http://temp.organization.e
If you scroll towards the bottom of the page there are several similar items. Each has two buttons below: "Approfondisci" and "Scopri i relatori". Basically I want every first button with text: "Approfondisci" in it to be hidden always.
The code I am trying to use is:
jQuery( ".speakers" ).each(function( index ) {
jQuery('.speaker .speaker-content .btn:nth-child(1)').hide();
});
I even separately tried via css: a:contains('Approfondisci'
but that doesn't work either.
What am I doing wrong? Please assist.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.