SyntaxFix
Write A Post
Hire A Developer
Questions
That should work. Better if you pass a function to val:
val
$('#replyBox').val(function(i, text) { return text + quote; });
This way you avoid searching the element and calling val twice.