Geeklog: What I Learnt Today / Adam

jquery trim and ie 8

> I was chaining a trim() to the end of a statement in js using jquery

this.value = this.value.trim();
Which worked fine in ff but pushed out error in IE8 its explained here because ie js String doesn't do String.trim So I swapped to this and

this.value = $.trim(this.value);
the docs for jquery trim are here http://api.jquery.com/jQuery.trim/

/ Adam