[Solved] Get value of a specific cell in HTML table with pure JavaScript


You can use a regular expression to extract the 2nd value from your HTML response.

var pattern = /<td>.*?<\/td>.*?<td>(.*?)<\/td>/s; // flag s = dot matches new line
var m = response.match(pattern);
console.log(m[1]); // prints "1165"

solved Get value of a specific cell in HTML table with pure JavaScript