Let's consider the following HTML structure:
<div id="container">
<div>
<div class="main" data-id="thisID">
</div>
</div>
</div>
If I want to retrieve the value inside the data-id attribute by selecting the class name, I can do the following:
var el = $('#container');
var row = el.find(".main");
After this step, I am unsure how to access the string stored in the data-id attribute using the variable "row".