Tag Archives: jQuery
Quick JavaScript hack/fixing of a jQuery problem
My site is a WP site. I use the popular Accordion Shortcodes plugin to handle my product’s pages. Also I use the even more popular Share Buttons by AddThis plugin to allow social sharing. But they don’t want to work … Continue reading
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