JQuery Click Event

JQuery Click Event

HTML

<button id="btnSave">Save Click</button>
<div class="hideme" id="infor">This is a test div</div>

JavaScript

$(document).ready(function () {
	$("#infor").hide();
	$("#btnSave").click(
		function () {
			AlertSave();
		}            
	);
});
function AlertSave() {
	$("#infor").fadeIn("slow", function () {
		setTimeout(function () {
			$("#infor").fadeOut("slow");
		}, 1000);
	});
}