jquery - How do I test for an empty Javascript object from JSON? :



2. Get elements from x-path.

var element = document.evaluate('//*[@id="resultsHolder"]/div[5]',document)
undefined
element
XPathResult {iterateNextfunctionsnapshotItemfunctionANY_TYPE0NUMBER_TYPE1STRING_TYPE2}
var lokesh = element.iterateNext()


'via Blog this'