-
-
Recent Posts
Categories
Archives
-
Meta
Tag Archives: JavaScript function
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 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
