<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>E</title>
</head>
<body>
<input id="count" placeholder="Количетво бибетов">
<button id="print">Напечататб</button>
<div id="output"></div>
</body>
</html>
document.getElementById('print').onclick = function () {
const count = +document.getElementById('count').value;
const output = document.getElementById('output');
for (let i = 0; i < count; i++) {
output.innerHTML += '<p>Билет</p>'
}
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.