Change Variable Text To Lower Case

RegisterLogin
Change Variable Text To Lower Case
Post Description: how do i change the value of a variable to lower case characters in a javascript script?
Tags: change, variable, text, to, lower, case
This Post Was Posted On Mar 29, 2010 By Elvis #3301
how do i change the value of a variable to lower case characters in a javascript script?

i am familiar with php you can use the strtolower() but for javascript, i am not sure
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
webune
#3657 1
hi, the function you need to use in javascript is:

toLowerCase()


so if you have a string called Myname for example, you can change the letters to lowercase:

document.getElementById('Myname').value.toLowerCase();

hope that helps
Mar 29, 2010 Reply Report abuse
©2012 Webune Forums - Sun Dec 16, 2012 2:38 am
Powered by: Webune Forums V3