• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 466
  • Last Modified:

Trim function in Jquery

Team,
whenever i enter space in the text box in my form , i get NAN. since space is not a number.
i would to use use jquery's inbuilt trim fucntion for my input text fields .
like as  "value = value.trim(); "

in FF it works great. however in IE8 it gives some JS unsupported object error. i tried to use jquery.validate.js & jquery.1.4.2.js . however nothing seems to be working. any clues?

Thanks
0
Easwaran Paramasivam
Asked:
Easwaran Paramasivam
  • 2
1 Solution
 
Php_expertCommented:
instead try this

i$.trim(value)

for more information refer this:

http://api.jquery.com/jQuery.trim/
0
 
Pratima PharandeCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now