A page's case conversion tool [program Bar www.qhttl.com Record]

Source: Internet
Author: User

Use Address: Case Converter View

In fact, tools for programmers do not have much use, also need not, in fact, I do not know what is the use, that is, to add a content for the site

Yesterday on the Web page with a new small gadget, a use JS to implement the case function code, in C #, there are ToUpper () and ToLower () function, but JS how?

Also because of JS a lot of things do not know, and later found that the data JS also have corresponding functions, respectively, tolocaleuppercase () and value.tolocalelowercase ()

Implementation code:

function Toa () {        document.getElementById ("a"). Value = document.getElementById ("a"). Value.tolocalelowercase ();    function ToA () {        document.getElementById ("a"). Value = document.getElementById ("a"). Value.tolocaleuppercase ();    }

case, call Toa () and Toa () respectively.


A page's case conversion tool [program Bar www.qhttl.com Record]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.