1
jQuery(function($){
$('#upusuario').on('submit', function(){
formulario = $(this).serialize();
Question: How I would pick up input senha
and confirmasenha
of this form to compare them, of course without using anything of the type var senha = $("#upusuario input[name=senha]")
whereas I have already recovered the fields with serialize
?
<input type="text" name="senha" class="form-control bott" required>
<input type="text" name="confirmasenha" class="form-control bott" required>
+1 for not having created a
elemento [jQuery]
just to take the value of an input.– Tobias Mesquita