How display data in the textbox in jquery
<p>I am getting problem to display selected data in textbox
I have following code which display data bellow the text box according to user suggestion</p>

<pre><code>$('input[name=profileOrg]').keyup(function(){
    var q = $(this).val();
    $.get("CHI_custom/customScripts/getorgname.php?q="+q, function(data){
       $('#name').html(data).show(); 
});
</code></pre>

<p>Following is code which give me the list from the database</p>

<pre><code>$term = $_GET['q'];
    $query = "SELECT organization_name FROM members WHERE organization_name LIKE '".$term."%'";
    $result = $db-&gt;query($query);
    while ($row = $result-&gt;fetch_array())
        {       
            //$member[] = $row['organization_name'];
            echo '&lt;a href="#"&gt;'.$row['organization_name'].'&lt;/a&gt;&lt;br&gt;';
        }
</code></pre>

<p>In this code i can able to display data bellow the text box according to user suggestion but i am getting problem when the user select data from the list how can i display selected value in the textbox?</p>

<p><strong>I don't want to use jquery UI auto complete</strong>. </p>
