SHERIN AS SHERIN AS - 6 months ago 42
jQuery Question

how to show particular div using jquey

<div class="companyname" data-companyname="abc" ></div>
<div class="companyname" data-companyname="xyz" ></div>
<div class="companyname" data-companyname="pqr" ></div>

i need show only data-companyname="abc" div i used following way in jquery


how it is get?


.companyname {
  display: none
<script src=""></script>
<div class="companyname" data-companyname="abc">1</div>
<div class="companyname" data-companyname="xyz">2</div>
<div class="companyname" data-companyname="pqr">3</div>

use the attr selector