here is what i have done so far:
//delcare html:
<div class="success" id="divStatus" style="display:none;" ><a href="#" class="close">×</a></div>
asp.net code behind:
ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "_key"+this.UniqueID, "$(function() { $('#divStatus').html('" + msg + "').show().fadeIn(9000).fadeOut(9000); });", true);
//css class:
.success
{
display:block;
color: #4F8A10;
background-color: #DFF2BF;
}
there is only logical explanation i think of is that, there is no css class(.success) in the >> #divStatus in $function .... is defined?
updated end
i am trying to add an class to the below selector but not sure if this is the right way of doing, any help?
here is what i tried doing but i don't see the the class is added and no action ( expect to see some colours)
"$(function() { $('#divStatus').addClass('success').html(.........
here is the full code i am doing in asp.net in code-behind.
ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "_key"+this.UniqueID, "$(function() { $('#divStatus').html('" + msg + "').show().fadeIn(9000).fadeOut(9000); });", true);
.show().fadeIn(9000).fadeOut(9000)that's not gonna work like you think it is (ie: chaining the calls does not makefadeOutwait forfadeInto finish).