Tag Archives: Google Chrome
Strange behaviour of parseFloat of ‘this.innerHTML’ in Chrome
This is a rare case: in a project I use parseFloat JavaScript function to calculate final sum, but string was in the HTML code, previously generated by jQuery AJAX call: $(‘#’+id).html(rezult+’ ‘+currency); … $(‘#total’).html(‘TOTAL: ‘+totalcalc()); so it must be captured … Continue reading
Posted in Blog, Hacks
Tagged AJAX, calculate, Chrome, code, final sum, Google Chrome, HTML, HTML code, innerHTML, isNaN, JavaScript, JavaScript function, jQuery, js, js function, NaN, parseFloat, string, sum
Leave a comment