jquery trim and ie 8

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 http://stackoverflow.com/questions/3439316/ie8-and-jquerys-trim 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

← previous | next →