Comments 1Quint started the conversationJanuary 3, 2018 at 6:12pmI would like to set a specific table display to none using jQuery. I have the following statement: jQuery(”#table_2_wrapper”).parent().css(“display”, “none”); If I apply this in the console, the table is removed and the chart that it depends on displays as expected. How could the code above be implemented in Settings > Custom wpDataTables JS? 1Quint repliedJanuary 3, 2018 at 10:05pmNever mind. Each chart has a Class and I can target the wpdt-c class accordingly.It would be great to know the alternate approach: that is, to use jQuery . Any pointers? 1,873Miloš repliedJanuary 4, 2018 at 10:58amHI Quint,Thank you for your purchase. To add some custom scripts for the tables and charts you can use Custom JS or CSS fields from the wpdatatables settings page.The "issue" here might be in the code that you wrote me below.In this case maybe the best option is to use jQuery(document).ready or window.onload methods.Best regards. Kind Regards, Miloš Jovanović[email protected] Rate my supportTry our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/ wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
I would like to set a specific table display to none using jQuery.
I have the following statement:
jQuery(”#table_2_wrapper”).parent().css(“display”, “none”);
If I apply this in the console, the table is removed and the chart that it depends on displays as expected.
How could the code above be implemented in Settings > Custom wpDataTables JS?
Never mind. Each chart has a Class and I can target the wpdt-c class accordingly.
It would be great to know the alternate approach: that is, to use jQuery . Any pointers?
HI Quint,
Thank you for your purchase.
To add some custom scripts for the tables and charts you can use Custom JS or CSS fields from the wpdatatables settings page.
The "issue" here might be in the code that you wrote me below.
In this case maybe the best option is to use jQuery(document).ready or window.onload methods.
Best regards.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables