Tag Archives: code

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 , , , , , , , , , , , , , , , , , , | Leave a comment