I am trying to add Jquery to a V2 Raw Content element.
When I add it I get the functionality needed, but it will output the code on the front ent and also show the rest of the shortcode for the page.
When I use a Classic Raw Content element with the same code it works fine and nothing is displayed on the front end.
Here is the code: https://pastebin.com/2XPc0p0D
This is on a local site so I cannot provide a link. There is no errors in the console.