2PTTechnology

The platform that enables you to build rich, interactive communities
Welcome to 2PTTechnology Sign in | Join | Help
in Search

check if javascript variable is empty

Last post 02-14-2008, 9:01 PM by admin. 0 replies.
Sort Posts: Previous Next
  •  02-14-2008, 9:01 PM 126

    check if javascript variable is empty

    function IsEmpty(aTextField)
    {
        if ((aTextField.value.length==0) || (aTextField.value==null)) 
        {
            return true;
        }
        else 
        { 
            return false; 
        }
    }

View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems