I tried this for given html element.
$('#dynamicformdata').each(function() {
console.log(this.type);
})
<div id="dynamicformdata">
<video width="320" height="240" >
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
</video>
</div>
How to get all attribute of this video tag inside div.