Hi guys,
I am using select2 plugin,
here is my client side code
<script type="text/javascript">
$(document).ready(function () {
$("input[id$='txtCountryName']").select2({
minimumInputLength: 1, // minimumInputLength for sending ajax request to server
width: '300px', // to adjust proper width of select2 wrapped elements
ajax: {
url: "/Empl.asmx/AccessRemoteData", // Webservice - WCSelect2 and WebMethod -AccessRemoteData
type: "Post",
dataType: 'json',
data: function (term) {
return {
term: term,
};
},
results: function (data, page) {
return { results: data.CountryList ...
Go to the complete details ...