Tag Archives: code

Unexpected parseFloat behavior with this.innerHTML in Chrome

This was an unusual case. In one project, I used the JavaScript parseFloat() function to calculate a final total, but the value came from HTML previously generated by a jQuery AJAX request: $(‘#’+id).html(rezult+’ ‘+currency); … $(‘#total’).html(‘TOTAL: ‘+totalcalc()); The value therefore … Continue reading →

Posted in Blog, Hacks | Tagged , , , , , , , , , , , , , , , , , , | Leave a comment