I'm trying to make a reply system for the comments on my blog. When someone clicks on "Reply" it will take the comment id and put two brackets infront of it in comment textbox.
Basically it will look like this >>123456789, it's not a link or anything it's just plain text. Once it's been posted the brackets are converted to > so it'll look like this in the final source code: >>123456789 (every id has 9 numbers)
I need to make that text into a link.
Here's what's supposed to happen: http://jsfiddle.net/KFXFd/
Here's what happens when I try to change the class: http://jsfiddle.net/qWYCQ/
Note that the class has to be .commenttext instead of body, but for some reason I can't get it working (I'm terrible at js).
.commentheaderinstead ofbody" Why? And, did you mean.commenttext?