How to trim string value :: JavaScript Tutorial

hi all..
hope everything is good at your end ..
today, there is a smal tip for javascript users …
umm infact not a tip but a utility function to trim string values ..
i was working on a project i had a need to trim user input befor submitting to server side
here is the quick way to do this .
<script type=”text/javascript” language=”javascript”>function trim(paramString){return paramString.replace(/^\s*/, “”).replace(/\s*$/, “”);}</script>
and thats it …
happy development 🙂
You need to be a part of a contest for one of the finest blogs on the
net. I most certainly will recommend this
site!
Very good post! We will be linking to this great article on our website.
Keep up the great writing.
Look into my page https://warrendelittle193.webgarden.at/blog/healthy-eating-regimen-is-about
I visited a lot of website but I think this one contains something special in it.
Also visit my web site; Monika
Everything is very open with a very clear explanation of the issues.
It was truly informative. Your website is very helpful.
Thank you for sharing!
Hey theгe this iss kibd of of ᧐ff topic buut I was wondering if bloɡs use WYSIWYG editors or
if you have to manuallʏ code with HTML. I’m starting a
Ƅlig soon but have no coding knowleԀge so Ӏ wanted
to get advice from someone with exρerience. Any hrlp wouⅼd be enormously appreciated!
Great website you have here but I was curious if you knew of any
forums that cover the same topics talked about here?
I’d really love to be a part of online community where I can get opinions from
other experienced people that share the same interest.
If you have any suggestions, please let me know.
Thanks a lot!
Here is my blog Nitro Strive Review
Good day! I know this is kinda off topic
nevertheless I’d figured I’d ask. Would you be interested in trading links or maybe guest writing a blog post or vice-versa?
My site discusses a lot of the same subjects as yours and I feel we could greatly benefit from each other.
If you might be interested feel free to shoot me an email. I
look forward to hearing from you! Great blog by the way!
Here is my web-site: Astroscope
Yeah bookmaking this wasn’t a speculative decision great post!
My web page: Compoise 360X CBD
There is certainly a lot to find out about this issue.
I really like all of the points you’ve made.
Thank you for another fantastic article. The place else may just anybody get that kind of info in such a perfect approach of writing?
I’ve a presentation subsequent week, and I’m at the look for such information.
My site – CoolEdge AC Reviews – http://www.mafiamind.com,
Excellent, what a weblog it is! This weblog gives useful information to us, keep it
up.
Feel free to surf to my website … DFine8
A fascinating discussion is worth comment. I do believe that you ought to publish
more on this subject matter, it might not be a taboo subject but usually people do not talk about
such topics. To the next! Cheers!!
Have a look at my webpage – ACV Rx Ingredients