PDA

View Full Version : trim in text box


atulbansal
05-24-2004, 04:57 AM
I m working on a webserver aplication is my problum is when i enter space in place os any character or string it will give me database error so is there may be any function in javasceript to avoid the space.

agent002
05-24-2004, 05:57 AM
So, you have a server side script that processes the form, don't you? In that case, you should really have that script remove the space, and not a JavaScript.

scoutt
05-24-2004, 11:40 AM
spaces shouldn't give you erros anyway. if it does than your code is in question.