I am attempting to select the element with the class "keyimage" that contains an a
tag with a specific background image.
This is the code I have written:
$( ".keyimage" ).has( "a[style^='background-image: url('https://example.com/wp-content/uploads/2018/02/white.jpg')']" ).css( "display", "none" );
Can anyone offer insight as to why it might not be functioning correctly?
Thank you for your help!