This works fine but as soon as I try to make a page in wordpress to display this calculator it does not work. See this link http://220.127.116.11/~ryedalel/calculate-wordpress/
I have disabled all plugins and changed to default theme but the error still remains. I have also followed various tutorials to correctly enqueue the script as required by wordpress but still the error is there.
Can anyone point me in the right direction?
The calculator code is below:
Finance options with Black Horse
How much are you looking to finance, and for how long?
We can offer you the following repayment plan:
At % APR Representative, you'd pay that off by
* Finance is subject to status and is only available to UK residents aged 18 and over. Finance provided by Black Horse Limited, St William House, Tresillian Terrace, Cardiff CF10 5BH.
Ryedale Caravans is authorised by the FCA with Limited Permission to conduct certain credit related activity
We are a credit broker/intermediary and can introduce you to a limited number of lenders who provide funding. We may receive commission or other benefits for introducing you to such lenders.
Read more here: Custom js file not loading in wordpress