When i try to get this attribute from ajax loaded div it return undefined

```
$(document).on('click', '.next', function(e) {
    var vid = $(this).attr('data-id');
    console.log("data-id is " + vid);
  });

```

console return the data-id is undefined

ajax loaded content

```
<div class = 'next' date-id ="21" ><svg></svg> </div>

```