There is a code
var znak = parseFloat($('td').eq(2).html()) || 0, lng0 = znak; var znac = setInterval(function (){ znak = lng0 = parseFloat($('td').eq(2).html()); },2000); var znak1 = parseFloat($('td').eq(3).html()) || 0, lat1 = znak1; var znac = setInterval(function (){ znak1 = lat1 = parseFloat($('td').eq(3).html()); },2000); With the help of which I get data, and if the data has not yet been received, then I set the initial value to 0 .
The code helped me a lot in the project, but I will have about 50-100 such markers, and finding each of them values is not an option ...
How can I improve this code ???