Select2 upon click(not selected), show loading spinner javascript
Ok my code is quite simple. I am using sample data but in my real code, upon clicking the select2 dropdown, the data takes a long time to load and to counter that i want to include a loading spinner that shows when the dropdown is clicked and hides after the data has finished loading. So far, i cant get it work. It works when select2 is changed or selected but not when it is clicked. Any suggestions <div class="col-sm-3 loader"> <%= select_tag 'clone-application-id', options_from_collection_for_select(@applications, :id, :case_code), prompt: "Please Select", class: "form-horizontal single-sele
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.