Disable Label after some amount of time

Generally in some application we use labels to display error message. But even when some operations are done the label text will be displayed what we initially show. So in this blog i would like to show how we can disable label after some amount of time using Jquery

Code that should be written ..

 <script type="text/javascript" src="JScript.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
        $('#<%= Label1.ClientID %>').fadeOut(1500, function() {
                $(this).html(""); //reset the label after fadeout
            });
        });
    </script>




Drag and drop a label on to the form

  <asp:Label ID="Label1" runat="server" />


Sample JavaScript that should be included was attached. Try it and let me know if any issues.