I have many ads on the page. Please help in getting the value of data-ad-slot which is inside <ins><div id="ad1">
<ins class="adsbygoogle id1" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-XXXXXXXXXXXXXXXX" data-ad-slot="XXXXXXXXXXXXXXXX"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>
getting the value from div
Moderator: General Moderators
-
rashmi_k28
- Forum Newbie
- Posts: 1
- Joined: Thu Jan 29, 2015 3:52 am
getting the value from div
Re: getting the value from div
Code: Select all
$('.id1').data('ad-slot');