Link to home
Start Free TrialLog in
Avatar of badwolfff
badwolfffFlag for United Kingdom of Great Britain and Northern Ireland

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.events/event/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:
jQuery( ".speakers" ).each(function( index ) {
    jQuery('.speaker .speaker-content .btn:nth-child(1)').hide();
});

Open in new window


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
ASKER CERTIFIED SOLUTION
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial