trim is not working in jquery
Just use $.trim() function to remove spaces. It doesn't remove white spaces between words. I have used in some projects and its working fine.
Try it. If you get any issue then just comment and I will try to resolve.
var value = ' this is the value ';
var MyMsg = $.trim(value);
alert(MyMsg);
Try it. If you get any issue then just comment and I will try to resolve.
trim is not working in jquery
Reviewed by Ashok Sen
on
10:16:00
Rating:
No comments:
Post a Comment