Saved X
Google login
SignUp with Email
X

How to make all lowercase in js

theindreshverma ( Added  Sep 29, 03:05 pm )
Login

Javascript toLowerCase() method, converts all letters in lowercase.

<html>
<head>
    <title>How to make all lowercase in js</title>
</head>
<body>

<h1>How to make all lowercase in js</h1>

<p id="s"></p>
<input type="text" onkeyup="makeLowercase(this)" placeholder="Enter here" />

<script>
function makeLowercase(t) {
    var x = document.getElementById('s');
    
    x.innerHTML = t.value.toLowerCase();
}
</script>

</body>
</html>

Sourcecode Tags

More Sourcecodes

More Sourcecodes