Показать сообщение отдельно
  #2 (permalink)  
Старый 05.01.2015, 22:30
Профессор
Посмотреть профиль Найти все сообщения от krutoy
 
Регистрация: 09.11.2014
Сообщений: 610

<html>
<head>
</head>
<body>

<input type="button" value="+ Input">

<table id="dp">
</table>


<script>

c=0
table=document.querySelector("#dp")
document.querySelector("input").onclick=function(){
  var el=document.createElement("tr")
  c++
  el.innerHTML='<td><input id="qqqh'+c+'" placeholder="H'+c+'" class="input_other_add_item"></td><td> <input id="qqqx'+c+'" placeholder="X'+c+'" class="input_other_add_item"></td>'
  table.appendChild(el)
}


</script>
 
</body>
</html>
Ответить с цитированием