skip to Main Content

Jquery – Clear fields when closing div

To open and close div I used the following code: $('#addvisit').on('click', function(e) { e.stopImmediatePropagation(); $('#fechvisit').slideToggle('slow'); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <button type="button" id="addvisit" class="hs-button primary large">Adicionar Visitante</button> <div id="fechvisit" style="display: none;"> <div class="row"> <div class="col-xs-12"> <div class="form-group"> <label for="titl"> <strong>NOME VISITANTE</strong></label> <select…

VIEW QUESTION

Jquery – Loader is not visible without timeout

I am using Ember JS for an application, I want to show the full loader before updating my DOM, like Ember.$("#full-loader").css("display","block"); someFuncToUpdateDOM(); Ember.$("#full-loader").css("display","none"); The full-loader is never shown, but when I use setTimeOut() on calling the someFuncToUpdateDOM(), now the full-loader…

VIEW QUESTION
Back To Top
Search