I'm a new to HTML, CSS and JavaScript and now I have a problem and I'm stuck.
My problem is that when I click next to go to the next div my progress bar doesn't work but I get the next div.
I saw a solution similar to mine but they also have the problem that the progress bar jump to the last step instead of the "next" step. Here is the solution I refer to: Multi-step form "next" button not working
// Script till next action knappen och step indicator
$(document).ready(function(){
var current_fs = "active";
var next_fs = 1;
$('#next').click(function() {
current_fs = $(this).parent();
next_fs = $(this).parent().next();
$('.current').removeClass('current').hide()
.next().show().addClass('current');
$('#progressbar li').eq($("current").index(next_fs)).addClass("active");
if ($('.current').hasClass('last')) {
$('#next').attr('disabled', true);
}
$('#prev').attr('disabled', null);
});