JQuery DataTables adds country icons in each column

I want to add to the DataTables a country icon in each column country(with jQuery) that matches the text displayed in that column.

So, when it contains the country of the USA, then before the text that will refer to us.png, there will be an image.

So from this:

Row without flag icons

:

Row with flag icons

(Edited in Chrome DevTools)

I think this can be done using aaData, but I don’t know how to use this without replacing the entire column.

Does anyone have an answer?

+5
source share

All Articles