Home > DeveloperSection > Forums > Use jQuery Tokeninput Autocomplete .
Ankit Singh

Total Post:341

Points:2389
Posted on    March-04-2016 9:43 PM

 JQuery JQuery 
Ratings:


 1 Reply(s)
 275  View(s)
Rate this:
We want to  jQuery Tokeninput Autocomplete  in a textbox  how to use this please help me.


aditya kumar Patel

Total Post:246

Points:1752
Posted on    March-04-2016 9:51 PM

Here we are going to use jQuery Tokeninput Autocomplete     in a text box .  first download jquery.tokeninput.js
from  http://loopj.com/jquery-tokeninput/ . and use like below code.

@{

ViewBag.Title = "index";

}

<link href="~/Content/token-input.css" rel="stylesheet" />

<link href="~/Content/token-input-facebook.css" rel="stylesheet" />

<script src="~/Scripts/jquery-2.1.4.min.js"></script>

<script src="~/Scripts/jquery.tokeninput.js"></script>

<div>

<input type="text" id="SelectEmployee" name="blah" />

<script type="text/javascript">

$(document).ready(function () {

$("#SelectEmployee").tokenInput("/Home/GetEmp");

});

</script>

</div>

 

Don't want to miss updates? Please click the below button!

Follow MindStick