Search found 2 matches

by c0wb0yz
Thu Jan 05, 2012 9:41 pm
Forum: JavaScript
Topic: Trim function
Replies: 6
Views: 4038

Re: Trim function

Actually, a friend of mine helped me out :
function trimName(person) {
 
  var trimmedName;
  if (person.name !== undefined) {
    trimmedName = person.name.trim();
}
 
  return trimmedName;
}
by c0wb0yz
Thu Jan 05, 2012 6:53 pm
Forum: JavaScript
Topic: Trim function
Replies: 6
Views: 4038

Re: Trim function

Hi, have you figured out the solution ?
I'm so stuck. It drives me crazy !
Thanks for your help