Archive for February, 2017

Convert Text in TextBox to Upper Using JavaScript

February 20, 2017 Leave a comment

Hi all,

Try this example to Convert Text in TextBox to Upper using Javascript

<html xmlns="">
<script type="text/javascript">
 function Capital(txt) {
 txt.value = txt.value.replace(/^\s+/, '').toUpperCase();
Enter Name:
<input type="text" value=" " onkeyup="Capital(this)" />

Hope this helps

Good Luck.

Categories: ASP.Net