We would like to know how to chain fadeOut, delay and fadeIn functions.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.4.4.min.js'></script>
<script type='text/javascript'>
$(function(){<!--from w ww. j a v a2 s. c o m-->
$('.selectLogoTop').change(function(){
$('.fileupload1').fadeOut(300).delay(100).fadeIn(300, function(){$(this).focus().trigger("click")});
});
});
</script>
</head>
<body>
<select class="selectLogoTop" name="selectLogoTop">
<option value="0">0</option>
<option value="1">1</option>
</select>
<input class="fileupload1" type="file" />
</body>
</html>
The code above is rendered as follows: