forked from ACB-Applications/Individual-Registration-FLUIG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...ro Individual/forms/867 - Formulário de Cadastro de Pessoa Física/input/upperCaseInput.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Deixa as palavras no input maiúscula sem precisar ativar o Caps Lock | ||
function UpperCaseInput(e) { | ||
var ss = e.target.selectionStart; | ||
var se = e.target.selectionEnd; | ||
e.target.value = e.target.value.toUpperCase(); | ||
e.target.selectionStart = ss; | ||
e.target.selectionEnd = se; | ||
} |