jQuery trim function does not work in IE7?

Posted by YourMomzThaBomb on Stack Overflow See other posts from Stack Overflow or by YourMomzThaBomb
Published on 2010-03-23T21:18:39Z Indexed on 2010/03/23 22:23 UTC
Read the original article Hit count: 267

I'm trying to call the jQuery text() function and run it through the trim() function to remove all trailing and leading whitespace. Seems to work great in Firefox, however, does not work in IE7 (refuses to remove a space trailing at the end).

Any ideas?! Maybe a regex solution?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about string