<div class="articles-list">
<div class="article" data-id="1">
Товар #1
</div>
<div class="article" data-id="2">
Товар #2
</div>
</div>
<script>
document.querySelector('.articles-list').addEventListener('click', (event) => {
console.log(event.target.dataset.id);
})
</script>
<script>
$('#btn').click(function(){
$('#result').val('Новый текст');
});
</script>
<textarea id="result" class="form-control" placeholder="Вывод:" rows="4"></textarea>
<input type="submit" id="btn" class="btn btn-primary" onclick="">
<textarea id="result" class="form-control" placeholder="Вывод:" rows="4"></textarea>
<input type="submit" id="btn" class="btn btn-primary" onclick="">
<script>
$('#btn').click(function(){
$('#result').val('Новый текст');
});
</script>
buildQuiz();
const slides = document.querySelectorAll(".slide");