|
-
Jan 31st, 2002, 08:30 PM
#1
Thread Starter
Hyperactive Member
Does Javascript has the strlen()?
Hi all,
I have an onChange then call a function, but inside of my
function I would like to know whether the variable is blank.
Here is the sample code:
OnChange="assignValue(2,this.options[this.selectedIndex].text)"
...
function assignValue(opt, myString)
{
//HOW do I check to see if myString is blank and/or has
// 0 length?
}
Thanks in advance for the help.
Jay
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|