Important thing you should know while using Jquery is
PostBack property
When
postback occurse JQuery code will get its original values..
So you should prevent
postback to see the functionality it..
<input type="image" id="flip" src="~/image/history-button.gif"/>
$(document).ready(function () {
$("#flip").click(function (e) {
$("#panel").slideToggle("slow");
e.preventDefault();
});
});
Where
e.preventDefault() will avoid
paostback.. So when you are using buttons use
e.preventDefault() to prevent
postback ( If postback is no necessory )..