Guest User

Untitled

a guest
Jan 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. eData[0]=["Del","Trotter","Sales"];
  2. eData[1]=["Rodney","Trotter","IT"];
  3.  
  4. `SELECT * FROM ad_colleague_info WHERE ad_colleague_info.First LIKE '"+$('#searchbox').val()+"%'";`
  5.  
  6. var search = new RegExp( "\b"+$('#searchbox').val()+"+", "gi");
  7. FeData = jQuery.grep(eData, function (value) {
  8. if(typeof(value[0]) != "undefined" && value[0] !== null && value[0].match(search)) return value;
  9. return null;
  10. });
Add Comment
Please, Sign In to add comment