I followed a tutorial and got a fadeIn effect working in HTML with Javascript and no CSS
This sounds really dumb but I have no Idea how can I make the second step to fade to a third step
<script type="text/javascript">
$(document).ready(function() {
$('#weiter').click(function() {
$('#age option:selected').each(function() {
if ($(this).val() == "no") alert('Why.');
if ($(this).val() == "under") alert('Hallo');
if ($(this).val() == "ok") {
$('#step1').fadeOut('fast', function() {
$('#step2').fadeIn('fast');
});
}
});
});
});
</script>
<div id="step1">
Hello
<p align="center">
<input id="weiter" class="btn" type="button" value="Next»">
</p>
</div>
<div id="step2">
Welcome
<p align="center">
<input id="weiter" class="btn" type="button" value="Next»">
</p>
</div>
<div id="step3">
Bye
</div>