Skip to content
Advertisement

shorter way to get data attributes from all column names and values

table users has 14 columns – id, src link, title…

JavaScript

Is there a shorter way, like this:

JavaScript

Advertisement

Answer

Maybe something like this:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement