Heb o derstaande code gekopieerd van een formulier, daar werkt alles perfect, alleen helaas niet op mijn website. Ik mis ik iets essentieel?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Digitale inschrijfbalie Grijze Jager Junior HIT</title>
<script src="../Javascript/jquery.js" type="text/javascript"></script>
<link rel="stylesheet" href="../Style/inschrijfbalie.css">
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="../Javascript/inschrijfbalie.js"></script>-->
<script>
//jQuery time
var current_fs, next_fs, previous_fs; //fieldsets
var left, opacity, scale; //fieldset properties which we will animate
var animating; //flag to prevent quick multi-click glitches
$(".next").click(function(){
if(animating) return false;
animating = true;
current_fs = $(this).parent();
next_fs = $(this).parent().next();
//activate next step on progressbar using the index of next_fs
$("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active");
//show the next fieldset
next_fs.show();
//hide the current fieldset with style
current_fs.animate({opacity: 0}, {
step: function(now, mx) {
//as the opacity of current_fs reduces to 0 - stored in "now"
//1. scale current_fs down to 80%
scale = 1 - (1 - now) * 0.2;
//2. bring next_fs from the right(50%)
left = (now * 50)+"%";
//3. increase opacity of next_fs to 1 as it moves in
opacity = 1 - now;
current_fs.css({
'transform': 'scale('+scale+')',
'position': 'absolute'
});
next_fs.css({'left': left, 'opacity': opacity});
},
duration: 800,
complete: function(){
current_fs.hide();
animating = false;
},
//this comes from the custom easing plugin
easing: 'easeInOutBack'
});
});
$(".previous").click(function(){
if(animating) return false;
animating = true;
current_fs = $(this).parent();
previous_fs = $(this).parent().prev();
//de-activate current step on progressbar
$("#progressbar li").eq($("fieldset").index(current_fs)).removeClass("active");
//show the previous fieldset
previous_fs.show();
//hide the current fieldset with style
current_fs.animate({opacity: 0}, {
step: function(now, mx) {
//as the opacity of current_fs reduces to 0 - stored in "now"
//1. scale previous_fs from 80% to 100%
scale = 0.8 + (1 - now) * 0.2;
//2. take current_fs to the right(50%) - from 0%
left = ((1-now) * 50)+"%";
//3. increase opacity of previous_fs to 1 as it moves in
opacity = 1 - now;
current_fs.css({'left': left});
previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity});
},
duration: 800,
complete: function(){
current_fs.hide();
animating = false;
},
//this comes from the custom easing plugin
easing: 'easeInOutBack'
});
});
</script>
</head>
<body>
<!-- multistep form -->
<form id="msform">
<!-- progressbar -->
<ul id="progressbar">
<li class="active">Algemene gegevens</li>
<li>In geval van nood</li>
<li>Overige gegevens</li>
</ul>
<!-- fieldsets -->
<fieldset>
<h2 class="fs-title">Algemene gegevens</h2>
<h3 class="fs-subtitle">Hieronder staan de algemene gegevens over het lid.</h3>
<input type="text" name="naamDeelnemer" placeholder="Naam deelnemer" />
<input type="text" name="woonplaatsDeelnemer" placeholder="Woonplaats" />
<input type="text" name="subgroepDeelnemer" placeholder="Subgroep" />
<input type="button" name="next" class="next action-button" value="Next" />
</fieldset>
<fieldset>
<h2 class="fs-title">In geval van nood</h2>
<h3 class="fs-subtitle">Controleer hieronder de contactgegevens voor noodgevallen</h3>
<input type="text" name="naamOuder" placeholder="Naam contact 1" />
<input type="text" name="telefoonOuder" placeholder="Telefoon contact 1" />
<input type="text" name="naamOuder2" placeholder="Naam contact 2" />
<input type="text" name="telefoonOuder2" placeholder="Telefoon contact 2" />
<input type="button" name="previous" class="previous action-button" value="Previous" />
<input type="button" name="next" class="next action-button" value="Next" />
</fieldset>
<fieldset>, , ,
<h2 class="fs-title">Overige gegevens</h2>
<h3 class="fs-subtitle">Hieronder de laatste controleerbare gegevens</h3>
<input type="text" name="allergie" placeholder="Allergie" />
<input type="text" name="medicatie" placeholder="Medicatie" />
<input type="text" name="bijzonderheden" placeholder="Bijzonderheden" />
<input type="text" name="fotosSocial" placeholder="Mogen we foto's maken en online plaatsen?" />
<input type="button" name="previous" class="previous action-button" value="Previous" />
<a href="https://twitter.com/GoktepeAtakan" class="submit action-button" target="_top">Submit</a>
</fieldset>
</form>
</body>
</html>