//This hides the div with id=contentId and displays the div with id=content2Id
HtmlDocument document = HtmlPage.Document;
document.GetElementByID("contentId").SetStyleAttribute("display", "none");
document.GetElementByID("content2Id").SetStyleAttribute("display", "block");
No comments:
Post a Comment