javascript - safari doesn't (dynamically) refresh $.html() content -
i have following piece of code $('#charactersremaining').html(123-countchars(this.value)); works in browsers except safari. in safari, if click content in div area ( of id=charactersremaining), refreshes, doesn't refresh automatically/dynamically any way force safari refresh? $().html('new content'); update: have used following 'hack' (for safari). still interested know if have missed technical detail $('#x').html('new'); $('#x').hide(); $('#x').fadein(); // or use .show(); finally, found issue. had image nearby (may floating/layering on text). safari didn't redraw underlying text (or quirk). anyway moved image around , works in safari too