×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Denken Von Code
Added: Nov 29, 2014 4:32 AM
Views: 9
Tags: javascript
Valida Senhas
  1. <script language="JavaScript">
  2.     $(document).ready(function() {
  3.     $('#UsrSenha2').blur(function() {
  4.         $('#UsrSenha1').val()!=$('#UsrSenha2').val() ? $('#S').html('As senhas estão diferentes') : $('#S').html('Ok');
  5.     });
  6.     })
  7.     </script>
  8.  
  9. --- Acrescentar um elemento html para mostrar msg
  10.  
  11. <span id="S"></span>