How to wrap this in a js function?
Permalink
I guess this is more of a javascript question than c5, but it's for a c5 site anyway.
So I have this js code that embeds a form:
<script type="text/javascript">
d3cp_bid = '119000525';
</script>
<script src="http://www.demandforced3.com/spa/vicibeautyschool/scheduler.widget" type="text/javascript"></script>
I can wrap the variable being set in a function, but I'm unsure of how to also wrap the script embed...
So I have this js code that embeds a form:
<script type="text/javascript">
d3cp_bid = '119000525';
</script>
<script src="http://www.demandforced3.com/spa/vicibeautyschool/scheduler.widget" type="text/javascript"></script>
I can wrap the variable being set in a function, but I'm unsure of how to also wrap the script embed...