[Solved] Progress bar animation when inputing form
I’m unsure of the issue because I cannot see a working example. Here is a working solution. $(“#progressbar”).progressbar({ value: 0 }); var $inputs = $(“.form-group”).children(“input”); var totalInputs = $inputs.length; $inputs.on(‘keyup’, function() { var pbVal = 0; $inputs.each(function(){ if($(this).val().length > 0) pbVal ++; }); $(“#progressbar”).progressbar(“option”, “value”, (pbVal/totalInputs)*100) }); .container{ width: 100% } <script src=”https://code.jquery.com/jquery-1.12.4.js”></script> <script src=”https://code.jquery.com/ui/1.12.1/jquery-ui.js”></script> … Read more