Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Pass JavaScript array as data

$
0
0

Replies: 0

When my site loads, it creates a Javascript variable, “portfolio_info”, containing an array of objects used as a lookup table by numerous Javascript functions.

I would like to display some of this same data in an HTML table created with the WP DataTable shortcode. How can a refer to this lookup table variable inside the shortcode?

Thanks

B

  • This topic was modified 5 minutes ago by bruce2me.

Viewing all articles
Browse latest Browse all 59525

Trending Articles