hello everyone,
Please help me i am using metronic_v5.5.5 so I need to change the model ID but if I change the ID the model does not work even when I change the ID name in the js file
return {
// Public functions
init: function () {
// Elements
modalEl = document.querySelector('#kt_modal_new_card');
if (!modalEl) {
return;
}
modal = new bootstrap.Modal(modalEl);
form = document.querySelector('#kt_modal_new_card_form');
submitButton = document.getElementById('kt_modal_new_card_submit');
cancelButton = document.getElementById('kt_modal_new_card_cancel');
handleForm();
}
};
Hi,
Do you see any errors in your console?
Make sure you've updated all instances where the ID is referenced. You can use the global find and replace feature in your IDE to replace the ID.
Regards,
Lauris Stepanovs,
Keenthemes Support Team