Validate email input using Jquery.Maskedinput and/or Jquery

Asked

Viewed 4,638 times

0

Hello, I need to validate an email input. I inserted Jquery into HTML and a plugin I found, Jquery.maskedInput. I managed to make masks for phone, cep, Cpf, but for email I do not know how to proceed. Below is an input that I made of CPF and worked perfectly.

<html>
<script type="text/javascript" src="assets/jquery.js"></script><!--Necessário para as mascaras dos inputs-->
    <script type="text/javascript" src="assets/jquery.maskedinput.js"></script><!--Necessário para as mascaras dos inputs-->

<script type="text/javascript">
    $(document).ready(function(){
      $("#cpf").mask("999.999.999-99");
    });
  </script>

<p><input id="cpf"class="notNull" placeholder="CPF" oninput="this.className = ''" name="mil_cpf"></p>
</html>

I need to manipulate the input by his ID, because the class I’m already using for something else. I appreciate who can help.

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.