Jump to content

My Search Result Javascript code is not working on Next Page


Recommended Posts

Hi, I'm hoping to get some help with my Javascript code, though I don't know that it is broken.  This works perfectly on page one of the Search Results, but on results with more than one page, when I go to the next page, none of the formatting or text generated by the script shows at all.

<script type="text/javascript">
var cb_boolean = '[@field:GroupIntergroup]';
if (cb_boolean == 'Group') 
{document.write('<span style="color: green;">[@field:Meeting_Days]</span> [@field:City]');}
else
{document.write('<span style="color: #ff8c00;">Multiple Groups</span>');}
</script>

What am I doing wrong?

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...