Help please solve the puzzle. How to calculate the number of td in a table, namely in a column with a specific class and with a specific value. The number of elements counts, but how to calculate exactly with the value 'ok'?
<table> <tr> <td>123</td> <td>123</td> <td>123</td> </tr> <tr> <td id='status'>123</td> <td id='status'>ok</td> <td id='status'>ok</td> </tr> $.ajax({ method: "POST", url: './save', data: { id: idp, status: status}, success:function(res) { if(res == 'yes') { var nnn = $('.status').length; alert(nnn); } } })