title: How to deal with multiple select elements on one form and livewire page using select2 laravel 8
body: <p>i have more than selector in one form nationality &amp; title .... all of them using select2 but i don't like to use for every on of them id i need to make it more smart</p>
  <p>$(document).ready(function () {</p>
  <pre><code>        $('.select2').on('change', function (e) {
              let data = $(this).val();
          @this.set('nationality_id', data);
          });
          // window.livewire.on('productStore', () =&gt; {
          //     $('#category-dropdown').select2();
          // });
      });
  </code></pre>