I have a element that dynamically generates the elements and simply want to run a onclick event
Either do
$( "li .searchterm" ).on('click', function() {
console.log('testing');
});
OR
-
Apple iPhone 5s
-
Apple iPhone 5s
And the Javascrip
function clickFunc(id) {
console.log('Do something with ' + id);
}