<form action="" method="post"> <a href="#" onclick="addInput();" class="addinput">Добавить</a> </form>