Changing text based on clicking multiple links

understood. script is back in its original place. apologies for the confusion/making things more difficult :slight_smile:

also,

i have tested it in the page content, at the end of the page template file (page.php) and in the external js file all with the same results. it worked before but not now.

just fyi.

Having re-read your instructions (and viewed the source code myself) and realizing how wordpress works, i have now put the script in footer.php so it is right before the closing body tag as was instructed, and same result as placing it everywhere else.

Dude,
you’re cool :slight_smile:

First of all, change the code in line 146 from this:

<table clss="demogrid" width="400" border="0" cellspacing="40">

to this:

<table class="demogrid" width="400" border="0" cellspacing="40">

Notice the missing “a” in the word class?
How did that suddenly happen??

Then, copy and paste this script directly before the closing body tag of your page (not half way up).

<script>
  jQuery(document).ready(function() {
    jQuery(".demogrid td a").click(function(){
      var caption = (jQuery(this).nextAll('.demosmall').html().split('<br>'));
      var part1 = caption[0];
      var part2 = caption[1];
      jQuery("#playertitle").html('<span class="font2">' + part1 + '</span><br /><br /><span class="playersubtitle">' + part2);
    });
  });
</script>

Then it should work as expected.

EGGSALAD!!!
thank you very much sir.

You’re very welcome.
The pleasure, Sir, was mine :slight_smile: