Metronic 8 Demo19 KTUtil.getById
when I am using KTUtil.getById in "Metronic 8" it responses with :
Uncaught TypeError: KTUtil.getById is not a function
at initValidation (login.js:25:63)
at Object.init (login.js:13:9)
at HTMLDocument. (Login:146:33)
at mightThrow (plugins.bundle.js:3766:29)
at process (plugins.bundle.js:3834:12)
Replies (3)
Hi,
In Metronic v8 you can use native javascript API to get elements by id:
var element = document.querySelector('#my_element');
element = document.getElemenetById('my_element');
You should update the login.js with the latest version from Metronic v8:
src/js/custom/authentication/sign-in/general.js
Regards.
It Works
Thanks a lot
Great! If you need any further help please do let us know.
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.