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
Thanks, Filburt1 -- read my msg
Hi Filburt1,
You were correct, but it would not work with the
myString.length(). However, it works fine with
if (myString.length > 0)
Thanks for the help.
Jay