Title: Dynamically change table content via Javascript
Last modified: January 9, 2019

---

# Dynamically change table content via Javascript

 *  Resolved [bw1111](https://wordpress.org/support/users/bw1111/)
 * (@bw1111)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dynamically-change-table-content-via-javascript/)
 * Hi Tobias,
 * I have some Javascript code which changes the href and innerHTML properties of
   an <‘a’> tag via document.getElementById. I have the <‘a’> tag in the table but
   not sure where to insert the Javascript code into Tablepress to dynamically change
   the content. Is this possible with TablePress?
 * Kind Regards,
    brian
    -  This topic was modified 7 years, 4 months ago by [bw1111](https://wordpress.org/support/users/bw1111/).
    -  This topic was modified 7 years, 4 months ago by [bw1111](https://wordpress.org/support/users/bw1111/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dynamically-change-table-content-via-javascript/#post-11068717)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Your best chance probably is to simply insert the JS code in a script tag below
   the table Shortcode.
 * Regards,
    Tobias
 *  Thread Starter [bw1111](https://wordpress.org/support/users/bw1111/)
 * (@bw1111)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dynamically-change-table-content-via-javascript/#post-11070330)
 * Thanks Tobias.
 * Not sure why I didn’t think of that?
 * It worked perfectly! Cheers.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/dynamically-change-table-content-via-javascript/#post-11070517)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/plugin/tablepress/reviews/)
   here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dynamically change table content via Javascript’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/dynamically-change-table-content-via-javascript/#post-11070517)
 * Status: resolved