It's difficult to explain but i'll do my best. 1 - I want to build a search bar that, on the jquery event keypress, searches in my database what the user has digited. 2- Then i want to fill a div with the results found. 3 - then i want to click or tap the value and see the value tapped or click filling the search bar.
No problems with step 1 and 2, because using jquery $.post() method all works fine but i cannot complete step 3, because i generate an html in my php file that, by the callback function of $.post method, fill the div. The problem is that jquery seems not able to catch the class i inserted into php generated file. So my question is: what's the proper way to achieve my goal? I hope i explained well ;)