when i test my web-page in chrome and firefox they work fine. but in IE it does not worked.
i found that
(" .class li").text().trim() not worked in IE he give me error that
Object doesn’t support this property or method. but in FF and chrome they work fine. are i goes something wrong to handle this.
Try this:
The reason that it doesn’t worked in your case is because the trim method you were calling was wasn’t jquery.trim method. It is a method you were calling on a object instance (
.text()returns a string). So some browsers have this method built-in while IE doesn’t.