I use the following code.
<div class="tt-suggestion">
<p style="white-space: normal;">
<span id="1">Rajesh<span style="float:right;">Bangalore</span>
</span>
</p>
</div>
When i click on , i need to have inner id.Below is my code to get the span id
$(document).on('click', '.tt-suggestion', function(){
var id=$(this).find("span").id;
});
How many values get from the database that many number of times that repeats. When i click on that , if i get the id, I have to send that id as a parameter to other php using ajax.But i am not able to get the id. Can anyone please help on this,Thanks.