2

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.

Biju s
  • 380
  • 1
  • 4
  • 15

2 Answers2

5

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

$('div[title="Stop drawing"]').hide();
Zakaria Acharki
  • 65,304
  • 15
  • 70
  • 95
1

Like this?

$('div[title="Stop drawing"]').hide();
David
  • 188,958
  • 33
  • 188
  • 262