Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
ef4fe133
"resources/views/vscode:/vscode.git/clone" did not exist on "326985eb27fa2a28b6485ad4b753b2ac70c112ae"
Commit
ef4fe133
authored
May 09, 2023
by
José Fernando Mendes da Costa
Browse files
carrega macara do cpf quando a página é carregada
parent
becabd1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/evento/formulario/integrantes.blade.php
View file @
ef4fe133
...
...
@@ -43,7 +43,7 @@
<div
class=
"form-row d-flex"
>
<label
for=
"cpf_consulta"
>
CPF:
</label>
<input
type=
"text"
id=
"cpf_consulta"
name=
"cpf_consulta"
class=
"form-control"
onkeyup=
"mask_cpf();"
>
<input
type=
"text"
id=
"cpf_consulta"
name=
"cpf_consulta"
class=
"form-control"
>
</div>
<div
class=
"form-row d-flex"
style=
"margin-top:10px"
>
...
...
@@ -135,26 +135,9 @@
<script>
function
mask_cpf
()
{
$
(
"
#cpf_consulta
"
).
keydown
(
function
(){
try
{
$
(
"
#cpf_consulta
"
).
unmask
();
}
catch
(
e
)
{}
$
(
"
#cpf_consulta
"
).
mask
(
"
999.999.999-99
"
);
// ajustando foco
var
elem
=
this
;
setTimeout
(
function
(){
// mudo a posição do seletor
elem
.
selectionStart
=
elem
.
selectionEnd
=
10000
;
},
0
);
// reaplico o valor para mudar o foco
var
currentValue
=
$
(
this
).
val
();
$
(
this
).
val
(
''
);
$
(
this
).
val
(
currentValue
);
});
}
$
(
document
).
ready
(
function
()
{
$
(
"
#cpf_consulta
"
).
mask
(
"
999.999.999-99
"
);
});
function
removerIntegrante
(
id
)
{
$
(
`#integrante
${
id
}
`
).
remove
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment