Get DMDID from the div element instead of fptr