How can I add an element after another element?
First of all, input
element shouldn't have a closing tag (from http://www.w3.org/TR/html401/interact/forms.html#edef-INPUT : End tag: forbidden).
Second thing, you need the after()
, not append()
function.