I am making a little forum and while trying to add the quote post functionality have come across a problem that has me stumped. Here is my js:
function addQuote(text)
{
var tArea = document.getElementById('forumReply_message');
tArea.value = text;
}
Here is sample HTML (one that doesn't work):
<a href="#replyArea" onclick="addQuote('Got a random playlist on right now. All sorts of stuff... Miike Snow, Galactic, Danger Mouse, Bon Iver, Marlena Shaw, Dirty Projectors... it's eclectic to say the least.');">Quote</a>
I really can't figure out why this won't pass the addQuote() value into the textarea. It does work for some posts but most of them it doesn't. I appreciate any help.