Drag and drops not working when served online server. Works locally

A couple of things.

You have some syntax errors in the stageTwo() function

Remove the }); the closing brackets at bottom.

Also close the quotes on this.style.border = "3 solid #438730; i.e it should be

this.style.border = "3 solid #438730";

Have look at this post on tips to debugging.

Also have a look at the below post which explains about using JQuery in wordpress and Hype.
I have not had to do this for a while but assume this still stands.

Wordpress has it's own JQuery and this will stop your included jquery working.
The post explains about how to use JQuery in hype and wordpress.

1 Like