• Resolved bw1111

    (@bw1111)


    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 5 years, 10 months ago by bw1111.
    • This topic was modified 5 years, 10 months ago by bw1111.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    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

    (@bw1111)

    Thanks Tobias.

    Not sure why I didn’t think of that?

    It worked perfectly! Cheers.

    Plugin Author TobiasBg

    (@tobiasbg)

    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 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.