The code below works if the #client-result-0 id is set to a static element. But when I point it to a dynamically created element, it doesn't work. I am using jQuery 1.7.1.
$j('#client-result-0') .on('click','.myLi',function(){
console.log('haha');
$j('#client-search-0').val($(this).text());
});
Thanks