I'm currently developing a bus route planner, using Wordpress as my CMS. I've added some JQuery code to add support for ajax (so visitors can use the route planner and load the route without having to go to another page), but it's not working.
On closer inspection using Chrome's Inspect Element, Wordpress appears to be adding paragraphs to the Javascript code, although the Javascript code is properly configured and is recognised as such:
Another member on the project also has the same issue:
Why is Wordpress doing this, and how can I stop Wordpress from adding paragraphs to the code? I am adding the code through the raw text editor for the page, so it's not like I'm adding the code via the Visual mode.