Top Ad unit 728 × 90

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.

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: 5

No comments:

Website Design Company at Kolkata All Rights Reserved © 2014 - 2019
Developed by Asenwebmedia

Contact Form

Name

Email *

Message *

Powered by Blogger.