I am doing a multi-threaded comment system as a way to learn php and javascript / jquery correctly. Ive been making beats and beans in the past, but ive made a new resolution of the year to learn it properly.
I am having trouble inserting a response form into the comment tree below the comment that was answered. I know this is probably pretty simple, but how do you embed html on a page when someone clicks on a link.
This code did not work for me:
$(document).ready(function(){
$(function() {
$('a#reply').click(function() {
$(this).append("the html blah");
});
});
});
Does anyone see where I'm wrong?
source
share