Downcase

From SDU
Jump to: navigation, search
To make corrections or additions to this article, select the edit tab above.
To discuss or ask questions about this article, select the discussion tab above.

Overview

Spell function converting string to a lowercase (coverts all characters in string to lowercase)

Usage

<source lang="javascript"> string downcase(string attr); </source>

  • attr - any string

Results

Returns converted string.

Examples

<source lang="javascript"> if(downcase(option_value) == "yes" ) {

   option_value="Yes";

} else if (downcase(option_value) == "no") {

   option_value="No";

} </source>