Skip to content Skip to sidebar Skip to footer

How To Use Jquery With The C# Webbrowser Control

I'm trying to perform this jquery action in my C# application : $('.icon-radiobutton').click() I tried the following : WebBrowser1.Document.GetElementsByName('.icon-radiobutton').

Solution 1:

Write a javascript function to do it and call that using your webBrowser component

js:

functionMyCLickFunction()
{
    $(".icon-radiobutton").click()
}

c#:

webBrowser1.Document.InvokeScript("MyCLickFunction");

Post a Comment for "How To Use Jquery With The C# Webbrowser Control"