Is it possible to get HtmlDocument after jQuery changes? For example, get element by 'myId' after the next change.
The js code:
$(document).ready(function ()
{
$("#myContainer").html("<div id='myId'></div>");
});
The C# code:
var doc = new HtmlDocument();
...
doc.GetElementbyId("myId");
How?
You might be able to do that using a mix of HtmlAgilityPack and WebBrowser
control. I think it's worth to take a look. You would load the html using
WebBrowser
and you'd parse it with HtmlDocument
.
This Code Project article could be a good start point