Click here to Skip to main content
15,900,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to create a textBox on web form using Autocomplete of HTML 5 I arrive to this but i need to be selected on text change for exemple if i have a table containing Rami, john, when i tap ram i need to select rami by auto complete(if there's any way without using ajax):
HTML
<!DOCTYPE html>

<html>

<body>

<form>

<input list="Students" name="DPS" />

<datalist id="Students">

  <option value="Ram">

  <option value="Mahak">

  <option value="Kajal">

  <option value="Pihu">

</datalist>

</form>

</body>

</html>
Posted
Updated 9-Apr-12 1:43am
v2

You have many options like JQuery AutoComplete PlugIn, AJAX autocomplete extender, AJAX Autoomplete using JQuery.
 
Share this answer
 
Comments
bashar Haydar 10-Apr-12 3:37am    
Thanks
for your interest can you give an example of a plugin on autocomplete
Angel1320 10-Apr-12 8:23am    
yes, Jquery AutoComplete PlugIn works as below

<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>

<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags" />
</div>
Angel1320 10-Apr-12 8:24am    
If you want to use AJAX AutoComplete Extender refer this : http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx
 
Share this answer
 
Hi ,
you should use ajax AutoCompleteExtender
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx[^]
Best regards
M.Mitwalli
 
Share this answer
 
read this

AutoComplete Textbox[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900