[{fio: "Иванов Иван Иванович", ComName: "Иван Иванович", Lang: "RUS",…}]
0: {fio: "Иванов Иван Иванович", ComName: "Иван Иванович", Lang: "RUS",…}
ComName: "Иван Иванович"
Id: "123456"
Lang: "RUS"
card_type: "primary"
fio: "Иванов Иван Иванович"
package: {name: "discont", exp_date: "2020-11-22 09:22"}
exp_date: "2020-11-22 09:22"
name: "discont"
$("#airports_next").click(function () {
$('#country-list li').click(function (){
var test = $(this).find('span').attr('span-data');
alert (test);
});
});
$(document).ready(function() {
$("#search-box").keyup(function() {
var inputVal = $(this).val();
if (inputVal.length === 0) {
$("#suggesstion-box").hide()
}
if (inputVal.length < 2) {
$("#search-box").attr("autocomplete", "off");
}
if (inputVal.length > 2) {
$("#search-box").attr("autocomplete", "on");
$.ajax({
type: "POST",
url: "readCountry.php",
data: 'keyword=' + $(this).val(),
beforeSend: function() {
$("#search-box").css("background", "#FFF url(images/LoaderIcon.gif) no-repeat 165px");
},
success: function(data) {
$("#suggesstion-box").show();
$("#suggesstion-box").html(data);
$("#search-box").css("background", "#FFF");
}
});
}
});
});
function selectCountry(val) {
$("#search-box").val(val);
$("#change-thems").val(val);
$("#suggesstion-box").hide();
}
function selectCountry(val) {
$("#search-box").val(val);
$("#change-thems").val(val);
$("#suggesstion-box").hide();
}
$query ="SELECT TABLE1.*, t2.servicename, t2.Reglament
FROM (SELECT DISTINCT(t1.city_name), t1.country_name, t1.highway,
case when t1.highway = '1' then '242'
when t1.highway = '2' then '243'
when t1.highway = '3' then '244'
when t1.highway = '4' then '246'
ELSE 0 end AS 'id'
FROM country as t1
WHERE t1.city_name LIKE '" . $_POST["keyword"] . "%'
ORDER BY t1.city_name
LIMIT 0,5) AS TABLE1
JOIN orders.cs_service AS t2 ON TABLE1.id=t2.id";