I have many 'div's on a page with unique data attributes like:
<div class="map" data-buid="<?php echo $bUID; ?>" ></div>
How can I find all of such 'div's with jQuery so that jQuery functions use unique variables for separate 'div's? Something like:
bUID = $('div.map').data("buid");
init(bUID);
...
function init(bUID);
Thank you.