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
  • 420
  • 1
  • 7
  • 16

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
  • 66,747
  • 15
  • 75
  • 101
1

Like this?

$('div[title="Stop drawing"]').hide();
David
  • 208,112
  • 36
  • 198
  • 279