there textfield : <input type="text" id="id" name="name" value="value" />
how make entered data in uppercase while typing ?
use keyup()
, touppercase()
..
$('#id').keyup(function(){ $(this).val($(this).val().touppercase()); });
or using domelement
$('#id').keyup(function(){ this.value=this.value.touppercase(); });
or using css (no javascript @ all)
#id{ text-transform:uppercase; }
Comments
Post a Comment