function checkSearch(term){
var arrStop = ['name1','name2'..], check='base_value';
$.each(arrStop,function(index,value){
if(term == value){
document.getElementById('stop').reset();
//console.log(term+'=='+value);
check = false;
}
});
return check;
}
var val = String($('#spterm').val());
console.log(val);
console.log(checkSearch(val));