Donate

How To Set Attribute Option Element In OpenWebkitSharp C#

Here's how you set option element attribute using OpenWebKitSharp.
foreach (WebKit.DOMNode optionElement in nodeItem.ChildNodes)  
 {  
   if (searchInnerHtml && optionElement.TextContent.Equals(searchInnerString))  
   {  
       WebKit.InteropIDOMHTMLElement el =    
       (WebKit.Interop.IDOMHTMLElement)optionElement.GetWebKitObject();  
       el.setAttribute("selected", "selected");  
   }  
 }  

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.

Invalid nested tag div found, expected closing tag input