Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             function changeUser() {
  2.                 var value = $('#users').val();
  3.                 $('#list').each(function(index) {
  4.                     var act = $(this).text();
  5.                     if( act.indexOf(value) && act.test(/\w{3,}/) ) {
  6.                         alert(act+' contains '+value);
  7.                     }
  8.                 });
  9.             }
  10.             $('#users').change(changeUser);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement