thisi sthe fpcd

p

plugin to find the content of the selector text without child... You can use a simple array based test like var validCodes = ['IT00', 'O144', '6A1L', '4243', 'O3D5', '44SG', 'CE64', '54FS', '4422']; function validItems(items) { for (var i = 0; i < items.length; i++) { if (validCodes.indexOf(items[i]) == -1) { return items[i]; } } return ''; } var items = ["IT00",... javascript,jquery,ajax,spring-mvc,datatables. _.findIndex(array, [callback=identity], [thisArg]) source npm package. There is no built-in function for this. It is also written in a functional style hence, it should be really straightforward to get going. Fiddle... Let suppose on button click you are calling ajax method