$("head").append('');$("head").append('');$("#name").suggestions({token: "bdb95d17661d53fedb611214bb3970fdad73a45a",type: "NAME",count: 5,/* Вызывается, когда пользователь выбирает одну из подсказок */onSelect: function(suggestion) {console.log(suggestion);}});
<!--[if lt IE 10]><![endif]-->$("#address").suggestions({token: "bdb95d17661d53fedb611214bb3970fdad73a45a",type: "ADDRESS",count: 5,/* Вызывается, когда пользователь выбирает одну из подсказок */onSelect: function(suggestion) {console.log(suggestion);}});
suggestions
"suggestions is not a function"
(function() { var src = 'https://cdn.jsdelivr.net/npm/suggestions-jquery@17.12.0/dist/css/suggestions.min.css'; var link = document.createElement('link'); link.setAttribute('src', src); link.setAttribute('type', 'text/css'); link.setAttribute('rel', 'stylesheet'); document.head.appendChild(link); src = 'https://cdn.jsdelivr.net/npm/suggestions-jquery@17.12.0/dist/js/jquery.suggestions.min.js'; var scrt = document.createElement('script'); scrt.setAttribute('src', src); document.head.appendChild(scrt); } )();