<select id="SelectCity">
<option>Select City</option>
@foreach (var City in ViewBag.CityData)
{
<option value="@City.Id">@City.City_Name</option>
}
</select>
<input id="txtlocation" class="typeahead" type="text" placeholder="Enter Your Location">
on this code to how to data retrive on cookie.