I am trying to iterate over table rows.But when I use $ to find an element from inside the .each function,it raises the above error.
var $ = cheerio.load(html);
.....
var headers = $('[id*=tableone] tbody tr')
headers.each(function(header_index, header_elem){
console.log($(header_elem)) => exception here
})
via Jaswinder
No comments:
Post a Comment