Jquery support?
jrowe88 opened this issue · comments
Jim Rowe commented
Hello- it appears that in Version 21.0.0, you removed the "legacy jquery support". For those of us who still use Jquery, is there a way to use this still?
Plugin version
v23.1.0
Jack O'Connor commented
There's no longer a jQuery plugin, but there's nothing stopping you just using pure JavaScript! Don't be afraid, it's not that hard! Just switch from the following:
$("#phone").intlTelInput(options);
to the following:
const input = document.querySelector("#phone");
window.intlTelInput(input, options);
And follow the readme - you'll be fine 😉