Web Development Tips

Archive for the ‘JavaScript’ Category

Custom Trim Function – javascript

Posted by: slvramesh on: January 22, 2008

In JavaScript, It is difficult to remove the white spaces for a string. JavaScript is mainly used for form validation. The users may make mistakes while submitting the form As a developer we will trim the spaces from user input. The custom trim function used to remove the white space in both side.   // [...]


Follow

Get every new post delivered to your Inbox.