I have an add button, It adds html sections dynamically like so, Jsfiddle
var scntDiv = $('.wrapper');
var i = $('div.row').length;
$(".add_member").click(function () {
$('html goes here').appendTo(scntDiv);
})
The add was okay but I'm asked to keep making the html bigger, and I have to use it in different projects. So adding html elements inside append sucks plus you have to make it one liner and to substitute double quotes for single quotes.
I used knockoutJS and riotJS, both work perfectly but I don't want to add another library just to add sections without writing html.
Is there a way to make add an entire section in jquery or Js that is just as simple as the remove method? without having to write html manually?