Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82111

How to set a property dynamically using javascript on oTable

$
0
0
I have a page with many DataTable objects in it. They all have a class "testAbcd" associated with them.

I am able to get all these objects using document.getElementsByClassName("testAbcd").

I am then iterating over these objects and need to set the value of the attribute 'sPaginationType' dynamically based on some conditions.

How can I achieve this? i.e. set the value of an attribute on the DataTable object.

Thanks

Viewing all articles
Browse latest Browse all 82111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>