JavaScript
- 31 ответ
- 0 вопросов
19
Вклад в тег
var num = 1;
$('.b1').on('click', function (e) {
num = parseInt($(this).data('num'));
})
$('.modal').on('shown.bs.modal', function () {
$('.slider__prod').slick({
initialSlide: num-1,
arrows: true,
prevArrow: '<button class="slick-prev slick-arrow" aria-label="Prev" type="button" style=""><i class="fa fa-chevron-left" aria-hidden="true"></i></button>',
nextArrow: '<button class="slick-next slick-arrow" aria-label="Next" type="button" style=""><i class="fa fa-chevron-right" aria-hidden="true"></i></button>'
});
});
<form action="" method="post">
<input type="text" name="group[0]" placeholder="группа">
<input type="text" name="group[0]['text'][]" placeholder="текст">
<input type="text" name="group[1]['text'][]" placeholder="группа">
<input type="text" name="group[1]['text'][]" placeholder="текст">
<input type="text" name="group[1]['text'][]" placeholder="текст">
<input type="submit" value="Отправить">
</form>