I have a text field and if user type something in it, I want to show suggestion of names with ajax then user will select any name that will be set in the text field then user can submit the form.....
<form>
<input type="text" id="name" name="name" value="" />
<input type="submit" value="Submit" />
</form>
here is the form.... guess after getting the response from ajax I displayed the suggestion in a div then if user select/click any name that name will be in the value of the text field.... but the problem is when I display the name then I can't access it later with jQuery.... any help??
<div class="ajax-response">
<p>Name 1</p>
<p>Name 2</p>
<p>Name 3</p>
more like this.........
</div>