how to addClass using $(function() { $('
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);


how to addClass using $(function() { $('
===

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);

