JQuery/Ajax Auto complete Plugin Demo

by Fakhr-e-Alam

Download plugin here

Code Sample

<!doctype html>
<meta charset="utf-8">
<title>Ajax dropdown</title>
<link rel="stylesheet" type="text/css" href="alam-ajax.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="alamajax.js"></script>
		//php or any other file which return data
		//field name to be filtered, where title=string in textbox
		//if php file is returning json object, specify value: the field with id/key/index and text:field name to display
		jsonOptions 	:	{
			value 	: 	'id',
			text	: 	'title',



	<input type="text" class="form-control txt"  name="countries" placeholder="type any char/word" />
	<input type="text" class="form-control txt" name="random" placeholder="type any char/word" />