3
I wanted to identify the following element on a page:
<input name="ctl00$ContentPlaceHolder1$txtData" type="text" value="19/01/2015" id="ctl00_ContentPlaceHolder1_txtData" style="font-size:110%;font-weight:bold;width:120px;" />
I’m using the following query to locate the element:
$node = $xpath->query("//input[@id='ctl00_ContentPlaceHolder1_txtData']");
To query is correct?
What is the best way to achieve
value
that input?
Thanks, but when I put the "->value" it gives this error:"Notice: Undefined Property: Domnodelist::$value in C: xampp htdocs site test.php on line 51" you know what it might be?
– Rodolfo Oliveira
You keep saying there’s no such function.
– Rodolfo Oliveira
It worked, thanks
– Rodolfo Oliveira