Сообщение от 9xakep
|
а как он хотя бы должен выглядеть?
|
Что-то типа такого...
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<style type="text/css">
#fields {
position: relative;
width: 200px;
}
#add {
position: absolute;
bottom: 0;
right: 0;
width: 30px;
}
input[type='text'] {
width: 160px;
}
</style>
<script type="text/javascript">
function Add() {
var o=document.createElement('input')
o.type='text'
var od=document.createElement('div')
od.appendChild(o)
var oc=document.getElementById('fields')
oc.appendChild(od)
}
</script>
</head>
<body>
<form>
<div id='fields'>
<div>
<input type="text" />
</div>
<input type='button' id='add' value='+' onclick='Add()' />
</div>
</form>
</body>
</html>