$(document).ready(function(){
var img = document.querySelector('#div01 img')
alert(img.src);
});
File.WriteAllText("index.html", "<h1>привет</h1>", Encoding.UTF8);
StreamWriter sw = new StreamWriter(File.OpenWrite("index.html"), Encoding.UTF8);
using System.Xml;
var xml = @"<head>
<block1></block1>
<block2></block2>
<block3></block3>
</head>";
var doc = new XmlDocument();
doc.LoadXml(xml);
var node = doc.SelectSingleNode("/head/block3");
if (node != null)
{
Console.WriteLine("Узел существует!");
}
else
{
Console.WriteLine("Узел не найден...");
}
overflow: hidden