Aftering getting slightly annoyed with what seemed to be a simple problem, I decided to consult the minds here at Stackoverflow. So I asked a question. Immediately, a few people flooded in their suggestions and answers which didn't solve the problem, and in most cases only demonstrated that the authors hadn't clearly understood the problem. After several more minutes, a local jQuery guru stepped in and said my code worked just fine, and that nothing was wrong with it.
So I went back to my local code and tested, and it didn't work. After a minute or so I realized that the markup-example I gave on SO (intended to be a simplified version of what I had locally) was actually different than what I had locally. Turns out, I had been thinking of something a bit different when I finished my markup, and began my jQuery. This resulted in me confusing the results of my script, and thus posting a question regarding a problem that never really existed to begin with.
When I realized what I had done, I tried to delete the question. But you can't, too many responses. So I thought about voting to close, but I don't really think this type of situation calls for a vote. So in the end, I simply posted my own answer giving a thorough explanation for what the issue was.
Granted, this type of thing won't happen very frequently, but when it does how are we to handle it? Did I do the right thing by explaining what I was confused about, and proving a detailed answer for anybody in the future who comes across the question and finds some assistance from it? Or should I alert a mod and ask for deletion (hoping that won't influence my rep negatively)?