What are you looking for relative numbers?
If this is a document, you need to
$('div.dashboard-module').each(function(){
var divNumber = $(document).index($(this));
});
If its relative to the parent, then you need
$('div.dashboard-module').each(function(){
var divNumber = $($(this).parent()).index($(this));
});
and etc.
Comment if you have questions
source
share