Tuesday, January 12, 2016

Add css class to webpart cell

$('div[id$=Test]').addClass('cssClassAddedFromCode');

var addCssClassScript = "$('div[id$=Test']').addClass('cssClassAddedFromCode');";
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "AddCssClass", addCssClassScript, true);

No comments:

Post a Comment