Saved X
Google login
SignUp with Email
X

Capitalize all letters jquery

theindreshverma ( Edited  Sep 01, 11:19 pm )
Login

Capitalize all letters jquery

<html>
<head>
   <title>capitalize all letters jquery</title>
   <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>

<p id="Showletters"></p>
<input type="text" id="letters" /><br>
<button class="Capletters">Capitalize</button>

<script>
$('.Capletters').click(function(){
   var letters = $('#letters').val();
   $('#Showletters').html(letters.toUpperCase());
});
</script>
</body>
</html>

Sourcecode Tags

More Sourcecodes

More Sourcecodes