Posted inJavaScript / jQuery

cannot read property mdata of undefined – Uncaught TypeError : Cannot read property ‘mData’ of undefined

cannot read property mdata of undefined – Having thead and tbody with the same numbers of th and td solved your problem.

cannot read property mdata of undefined

Error : Datatables: Cannot read property ‘mData’ of undefined OR cannot read property mdata of undefined

The following will throw error (no thead and tbody tags)

Simple Example for Datatables

header-1 header-2
description-1 description-2

console error “Cannot read property mData of undefined”..?? – The following best example will also throw an error (unequal number of columns)

header-1 header-2
description-1 description-2 description-3

Don’t miss : Javascript Runtime Error Function Is Undefined

I hope you get an idea about cannot read property mdata of undefined.
I would like to have feedback on my infinityknow.com.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of Pakainfo.com. I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.

Leave a Reply

Your email address will not be published. Required fields are marked *

We accept paid guest Posting on our Site : Guest Post Chat with Us On Skype