using jquery’s spinner in custom component

Assumtion/prerequirements You are using jQuery You are using jQuery UI By using jquery ui’s autocomplete you get this nice spinner in your input-tag.It is pretty easy to reuse the spinner in you own component. $(‘#user_id’).addClass( “ui-autocomplete-loading”); $(‘#user_id’).removeClass( “ui-autocomplete-loading”); In my case I used an following ajax-call: $(‘#user_suchen’).click(function() { $(‘#user_id’).addClass( “ui-autocomplete-loading” ); var userId = $(‘#user_id’).val(); …

using jquery’s spinner in custom component Read More »