Hiding div with apostrophe in title

I have a problem with hiding a div containing an apostrophe in the name. To hide the use of this code:

$("div[data-title='Contact']").hide()

Everything works fine, but the problem arises when the div is called an apostrophe. I tried several forms (see below), but none of them work.

$("div[data-title='Offer's']").hide()
$("div[data-title='Offer/'s']").hide()
$("div[data-title='Offer's']").hide()

Are there any other ways they could refer to the corresponding div?


I must add that when I look at the source of the page, the title is saved in this format:

 data-title="Offer's"

I checked:

 '
 /'
 //'
 \'
 \\'
 '

And nothing....

+4
source share
3 answers

, , Offer's. . , . ' ', & in ' &.

HTML , . , Offer's. ' - , : , "", . '.

, , Offer's, Offer's, , , Offer's, . :

$("div[data-title='Offer's']").hide()
+4

: $("div[data-title='Offer\'s']").hide();.

0

$("div[data-title='Offer\'s']").hide(); works.

Here is jsFiddle

Here is also a screenshot:

screenshot

-1
source