trim() is not working in Internet Explorer(it’s working properly in Chrome and Firefox). However I need to trim the value to prevent empty spaces.
trim() is not working in Internet Explorer (it’s working properly in Chrome and Firefox
Share
If this turns out to be an IE bug, you can always implement your own workaround using RegEx in JavaScript like this left trim function sample – the sample can be expanded to trim both left and right sides. This Regex should work in all browsers.