-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to get the repeater values but it return an Uncaught TypeError: parsed[0] is undefined #177
Comments
and that's repeater Jquery var REPEATER = null;
var KTFormRepeater = function() {
var demo1 = function() {
REPEATER = $('#kt_repeater').repeater({
initEmpty: true,
show: function() {
updateRepeaterItem($(this));
},
hide: function(deleteElement) {
$(this).slideUp(deleteElement);
},
})
}
return {
init: function() {
demo1();
}
};
}(); |
and that's how I'm trying to retrieve the values : jQuery(document).ready(function() {
$('#saveRepeaterValuesButton').bind("click",
function() {
var data = REPEATER.repeaterVal();
console.log(data);
});
}); |
I didn't looked up the repeaterVal implementation to understand how the function works, my issue is input fields implemetation was wrong. <select class="custom-select" name="repeaterselectname" id="projectsselection" data-kt-repeater="select2" data-placeholder="select a projects"> and for the date field : <input class="form-control" name="text-input" type="text" id="kt_timepicker_1_validate" placeholder="Enter Duration" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's my repeater
The text was updated successfully, but these errors were encountered: