The first thing I would do is inspect cookieMood. Obviously, it exists, or the code wouldn't reach that line. But, perhaps it isn't a string, as you expect.
On Wed, Dec 23, 2009 at 9:50 PM, ArnieML <arnie.lapi...@gmail.com> wrote: > Hi, > > Code snippet is as follows: > > function setStartMood(cookiemood) { > > if(cookiemood) { > $("#moodlist").val(cookiemood); > $("#plsselectmood").css( {'visibility': 'hidden'} ); > mood = cookiemood.toLowerCase(); > } > else { > $("#plsselectmood").css( {'visibility': 'visible'} ); > } > return mood; > } > > The function works perfectly in Chrome and Firefox but IE gives the > ff. error message (object doesn't support this property or method), > referring to the toLowerCase method. IE is really annoying! >