Remove the space in selector
$("li.searchterm").click(function() {
console.log('testing');
});
and You can also use .on
to attach the specific event to the matched elements
$("li.searchterm").on("click",function() {
console.log('testing');
});
Js Fiddle