i thought this code should work but it didnt, can someone explain?
$("#addLinkLayout input.comment, #addLinkLayout input.link").each(function() {
$(this).val().appendTo('div#links');
});
it says $(this).val().appendTo() is not a function.