www.webdeveloper.com
Results 1 to 3 of 3

Thread: Display in Lowercase

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    18

    Display in Lowercase

    Hi,

    For my JavaScript at http://www.payitforwardfriends.com/converter.html I want it so that when you press calculate the result is all in lower-case. In other words, I want it to write the substance in lower-case in the result but not in the list of options.

    How do I do this?

    Thanks!

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,444
    Try...
    Code:
      if (substancetext != ""){
        document.getElementById('substancemessage').innerHTML = substancetext.toLowerCase();
      }

  3. #3
    Join Date
    Dec 2011
    Posts
    18
    I changed it but it doesn't seem to work.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles