Since tweets are backed up automatically in this blog and prefixed with ‘Tweet:’, I thought it would be better to replace the prefix by a Twitter icon. jQuery can do that nicely: [code] jQuery(‘h2 a’).html(function(i,html) { return html.replace(/Tweet\:/g, ‘‘); }); [/code]
Tag: jQuery
jQuery error in Internet Explorer
One cause of error at least. Watch for stray commas at the end of an array. For example : [code] var array = [ ‘zero’, ‘one’, ‘two’, ‘three’, ‘four’, ]; [/code] That comma after ‘four’ will be silent in most browsers. In Internet Explorer (lower than 8 at least), this will throw an error.