- Go to JSFiddle. Update: Or CodePen!
- Press Run and see if the result is demonstrating the problem, adjust as needed to make the problem very clear.
- Press Save to get a public URL.
- Share that URL where you are trying to get the troubleshooting help.
Also, if you can whittle it down to the bare minimum still showing the problem, that's ideal.
The key is being able to see the result. It's 100 times easier for your potential troubleshooter to play with that than trying to guess what is happening by looking at your code alone.
A lot of times, during the process of creating this (let's call it what it is: a reduced test case) you'll solve the problem yourself. And if not, the chances of you getting help from someone else goes way up.
Doing this will make you a better coder and better in bed. I promise.