parse [object XrayWrapper [object HTMLLIElement]] into HTML object
- by kitokid
when I access and GM_log the currentLi of li object, it is complaining undefined.
So when I GM_log li value as a string , instead of HTML object, I am getting [object XrayWrapper [object HTMLLIElement]].
How can I convert it or how I can access its related elements and value ?
$("#result-set li").each(function(index) {
var $currentLi = $(this);
var $class1link = $currentLi.find("class1");
var $class1href = $class1link.attr("href");
}