993
edições
Sem resumo de edição |
Sem resumo de edição |
||
Linha 30: | Linha 30: | ||
<script defer> | <script defer> | ||
const wrapper<!--{$id|default:''|escape:'html'}--> = document.querySelector(".selectwithSearch__container.<!--{$id|default:'x'|escape:'html'}-->"), | const wrapper<!--{$id|default:''|escape:'html'}--> = document.querySelector(".selectwithSearch__container.<!--{$id|default:'x'|escape:'html'}-->"), | ||
selectBtn<!--{$id|default:''|escape:'html'}--> = wrapper.querySelector(".selectwithSearch__selectBtn"), | selectBtn<!--{$id|default:''|escape:'html'}--> = wrapper<!--{$id|default:''|escape:'html'}-->.querySelector(".selectwithSearch__selectBtn"), | ||
searchInp<!--{$id|default:''|escape:'html'}--> = wrapper.querySelector("input"), | searchInp<!--{$id|default:''|escape:'html'}--> = wrapper<!--{$id|default:''|escape:'html'}-->.querySelector("input"), | ||
options<!--{$id|default:''|escape:'html'}--> = wrapper.querySelector(".selectwithSearch__options"); | options<!--{$id|default:''|escape:'html'}--> = wrapper<!--{$id|default:''|escape:'html'}-->.querySelector(".selectwithSearch__options"); | ||
function addOptions<!--{$id|default:''|escape:'html'}-->(selectedOpt) { | function addOptions<!--{$id|default:''|escape:'html'}-->(selectedOpt) { |