Here is solution for your problem..
<script language="javascript" type="text/javascript">
$(document).ready(function () {
$("button").click(function (e) {
$(".div1").fadeOut();
$(".div2").fadeOut("slow");
$(".div3").fadeOut(4000);
e.preventDefault();
});
});
</script>
Mistake done in your code..
1.
<button>Click on me</button> taking
postback when you click it. So even id animation happens also u can't see it.. So you should avoid
postback.. Code to avoid posback is below..
e.preventDefault();
2. You no where give id's to your division, you gave just class name.. But in your JQuery code you used
id selector(#). Which works only for id's. So for class you should use
class selector(.)...
So i changed your code to $(".div1"),$(".div2"),$(".div2")....
Hope you understood and got your solution...