Home  >  Article  >  Web Front-end  >  What are the jQuery letter case conversion functions?

What are the jQuery letter case conversion functions?

coldplay.xixi
coldplay.xixiOriginal
2020-11-25 10:30:561682browse

jQuery letter case conversion function: 1. [toLowerCase()] method is used to convert strings to lowercase; 2. [toUpperCase()] method is used to convert strings to uppercase.

What are the jQuery letter case conversion functions?

The operating environment of this tutorial: Windows 7 system, jquery version 3.2.1. This method is suitable for all brands of computers.

jQuery letter case conversion function:

1, toLowerCase() method is used to convert strings to lowercase.

Syntax

stringObject.toLowerCase()

Return value: a new string in which all uppercase characters of stringObject are converted to lowercase characters.

2, toUpperCase() method is used to convert strings to uppercase.

Syntax

stringObject.toUpperCase()

Return value: a new string in which all lowercase characters of stringObject are converted to uppercase characters.

Related learning recommendations: js video tutorial

The above is the detailed content of What are the jQuery letter case conversion functions?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn