I'm trying to copy a textarea in my html code by clicking a button that adds it to the same container of the first textarea.
My code is:
$("#note_adder").click(function(){$("#p_note").clone().append('note_id')});
- Button's id is
note_adder - Textarea's id is
p_note - Container's id is
note_id
I also want to change the name attribute of the newly created textarea.