I have read many of the articles on using jquery to find and append. I have been successful at doing this on other projects, but mostly appending to a div element. I need to append to javascript on the page that unfortunately I don't have core access to.
Existing JS:
<div class="widget">
<script type="text/javascript">
var widget37 = new VideoWidget("VideoCanvas",
"divVideoCanvas37", "DS37");
widgetVideoCanvas37.SetWidth("630");
widgetVideoCanvas37.SetHeight("355");
widgetVideoCanvas37.SetVariable("isMute", "false");
widgetVideoCanvas37.RenderWidget();
</script>
</div>
Before the RenderWidget, I need to add
widgetVideoCanvas37.SetVariable("isAutoStart", "true");
I've tried something like this:
$( "widgetVideoCanvasDS37.RenderWidget()" ).prepend( "<p>Test</p>" );
but it does appear to be working. Maybe prepend isn't the best way to do this. Thanks in advance for the help!