The other day I was trying to get an animation to work with JQuery, it was more complex than just one simple animation, I was able to get it to work just not exactly as I had envisioned it but I kept messing with the code thinking the solution had to be just around the corner.
Five hours later I decided I needed to try something else and was able to achieve a similar effect, using a different approach in about an hour and a half.
I am hoping this has happened to everyone at some point or another, otherwise I've just posted for no reason.
Just curious how long do you spend trying to make a piece of code work before going back to the drawing board and trying something new?