Q:

Add row in (div formate) html with javascript

I want to add row with remove button through javascript in html div formate.
Any help is appreciated!
Thanks 

A:

$('<div>').append(
  $('<button>').text('remove').click(function(){$(this).parent().remove()})
).appendTo($(document.body))

