jQuery Comment Box Question
So, I want to make a very basic and generic comment box in jQuery and HTML. I was wondering if I could use the appendTo(); method to do so. So here is my idea:
So, I make a new <li> element with the .appendTo()
- $('.btn').click(function() {
- $('<li>').text().appendTo();
- })
After, in the text(), I add inputs from my HTML form. (How do I do that? Use a selector for a form with an input?) [Also, I have the btn class]
It then appends to a container containing the comments. Is this possible?