I write software in many languages, and am just getting to grips with Java and Java Script. I know all the programming concepts, but it's just finding the matching keywords.
I want to know how to tell if a string is empty:
I've tried:
if (request.company_type.length > 1){
which is fine unless they type a space. is there a command to trim the string of spaces before I check the length property?
I'm basicly trying check if some fields on a web page have something valid! entered. but not spaces or nulls
Cheers
Glyn
I want to know how to tell if a string is empty:
I've tried:
if (request.company_type.length > 1){
which is fine unless they type a space. is there a command to trim the string of spaces before I check the length property?
I'm basicly trying check if some fields on a web page have something valid! entered. but not spaces or nulls
Cheers
Glyn