Am I stuck as a problem accessing an HTML element in IE using XPath in Javascript? I have already tried using the selectNodes () method, but only for XML, this is not work for XPath HTML element.
document.setProperty("SelectionLanguage", "XPath");
var mydoc=document.loadXML(document);
var nodes=mydoc.selectNodes("//input[@name='action']");
But it does not return any item. Can anyone suggest me how to access an HTML element in IE XPath using Javascript? Any suggestion is appreciated.
-Thanks in advance.
source
share