<form action="" id='test-form'>
<input type="text" class='form-control' onclick='addInput(this)'>
</form>
<script>
function addInput(input)
{
if ($(input).next().length == 0) {
$(input).after("<input type='text' class='form-control' onclick='addInput(this)'>");
}
}
</script>
浙公网安备 33010602011771号