Hi, tried to get the data form all fields in javascript using $(".repeater").repeaterVal(); and I found out that the doesn't get returned by this.
Can you please check?
Example:
<form class="repeater">
<div data-repeater-list="group-a">
<div data-repeater-item>
<input type="text" name="text-input" value="A"/>
<input type="number" name="number-input" value="1"/>
<input data-repeater-delete type="button" value="Delete"/>
</div>
</div>
<input data-repeater-create type="button" value="Add"/>
<input type="button" value="Check data" onclick="checkData()" />
</form>
<script src="path/to/jquery.js"></script>
<script src="path/to/jquery.repeater/jquery.repeater.js"></script>
<script>
$(document).ready(function () {
$('.repeater').repeater();
function checkData(){
let data = $(".repeater").repeaterVal();
console.log(data);
}
});
</script>
Hi, tried to get the data form all fields in javascript using $(".repeater").repeaterVal(); and I found out that the doesn't get returned by this.
Can you please check?
Example: