Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Div fade out after data saved

$
0
0
Hi,
 
I have a div which shows message "data is saved..!" after data save.
and i want that div to fade out after 5 second automatically(may be call from code behind but not on button click.)
 
How can i do this .
 
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
</head>
<body>
<form id="form1" runat="server">
<script type="text/javascript">
$(function () {
$('#btnTest').click(function () {
$('#divTest').fadeOut(5000);
});
});
</script>
<input id="btnTest" type="button" value="Test" />
<div id="divTest" style="background-color: Gray; color: White;">
Data is Saved...!
</div>
</form>
</body>
</html>
 

i am not using any ajax call i just want to give call to my jquery from code behind.
thats it.
 

Thanks

Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>