I have the following scenario as
my input text box will be having a text value assume it to be "sampletext" in lower case.
<input type="text" ng-model="txtValue" />
so when the user types s textbox value should be S
Again the user will type a so now text will be Sa and it should change as SA
simple words what he types it should turn into upper case before the next character he types.
I tried something like this in two different textbox as the below code
Before
<input type="text" ng-model="numberValue"/>
After
<input type="text" ng-model="numberVal"/>
script controller as
$scope.$watch('numberValue',function(){
$scope.numberVal=parseInt($scope.numberValue).toUpperCase();
});
Also what if I need to separate them with example A => "A" Ab => "A","B" like this