0

I want to hide this div based on its data-label value means the div which is having data-label="LBL_VIDEO_URL" is to be hide on call of java-script function.

<div class="col-xs-12 col-sm-4 label" data-label="LBL_VIDEO_URL">
</div>
Rupinder Kaur
  • 319
  • 6
  • 21

1 Answers1

1

very simple

//with jQuery
$('div[data-label="LBL_VIDEO_URL"]').hide()

//with Javascript
document.querySelector('div[data-label="LBL_VIDEO_URL"]').style.display='none';
Behnam
  • 6,244
  • 1
  • 39
  • 36