SHARE
TWEET

Untitled

a guest Jun 19th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery("input[type='text']").change( function() {
  2.  
  3. var current = jQuery(this);
  4.  
  5. jQuery('input[name^="text"]').each(function() {
  6.  
  7. if (jQuery(this).val() == current.val() && jQuery(this).attr('id') != current.attr('id')) {
  8.  
  9. alert('No duplicate emails allowed!');
  10.  
  11. }
RAW Paste Data
Top