For example in javascript using getelementbyid:
document.getElementById("theID").style.width="100%";
can i change the css from the node retrieved by xpath like with getelementbyid?
Yes, i did it like this:
var xpath = 'your xpath';
var matchingElement = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
matchingElement.style.color = "blue";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With