Biju s
Biju s

Reputation: 430

Hiding a div have a specific title in jQuery

I need to hide a Div on using Jquery its contain specific title . example in my two div have title Stop drawing and Draw a circle

<div draggable="false" title="Stop drawing"  ></div>
<div draggable="false"  title="Draw a circle" ></div>

Please help me.

Upvotes: 2

Views: 2907

Answers (2)

Zakaria Acharki
Zakaria Acharki

Reputation: 67505

Take a look at jQuery [attribute|=value] Selector and jQuery Selectors, you can do it by following code :

$('div[title="Stop drawing"]').hide();

Upvotes: 5

David
David

Reputation: 218837

Like this?

$('div[title="Stop drawing"]').hide();

Upvotes: 1

Related Questions