Files
aroginhealthcare/resources/js/backend/repeater.js
2025-08-17 16:23:14 +05:45

17 lines
528 B
JavaScript

$(document).ready(function() {
if ($('.repeater').length > 0) {
$('.repeater').repeater({
show: function () {
// This function is called when the "Add" button is clicked
// You can add any additional logic here
return $(this).slideDown();
},
});
// Disable form submission when clicking the "Add" button
$('.repeater').on('click', '[data-repeater-create]', function () {
return false;
});
}
});