Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    161
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Lower and Uppercase changing

    Is there a function in Javascript to do the same job as PHP's strtoupper()?

    If you don't know what the PHP function does but know JS here's an example.

    $name = "dan"
    $namecaps = strtoupper("$name");

    $namecaps would now be "DAN"

  • #2
    Regular Coder
    Join Date
    Mar 2003
    Posts
    241
    Thanks
    0
    Thanked 0 Times in 0 Posts
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    var myName = "phlegmatic";
    alert(myName.toUpperCase());
    alert(myName.toLowerCase());
    </SCRIPT>

  • #3
    Regular Coder
    Join Date
    Nov 2002
    Posts
    161
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Doh!

    Doh, Doh, Doh, LOL!

    I was trying to remember what the function was called because I knew I used it on an old site that doesn't exist any more, I had it right except I was using a lower case C on case.

    Thanks.


  •  

    Posting Permissions

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