67 строки
2.6 KiB
HTML
67 строки
2.6 KiB
HTML
|
<!doctype html>
|
|||
|
<html>
|
|||
|
<head>
|
|||
|
<title>Essential JS 1 : Autocomplete RTL</title>
|
|||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8" />
|
|||
|
<link href="../content/bootstrap.min.css" rel="stylesheet">
|
|||
|
<link href="../content/ejthemes/default-theme/ej.web.all.min.css" rel="stylesheet" />
|
|||
|
<link href="../content/default.css" rel="stylesheet" />
|
|||
|
<link href="../content/default-responsive.css" rel="stylesheet" />
|
|||
|
<!--[if lt IE 9]>
|
|||
|
<script src="../scripts/jquery-1.11.3.min.js" type="text/javascript"></script>
|
|||
|
<![endif]-->
|
|||
|
<!--[if gte IE 9]><!-->
|
|||
|
<script src="../scripts/jquery-3.4.1.min.js" type="text/javascript"></script>
|
|||
|
<!--<![endif]-->
|
|||
|
|
|||
|
<script src="../scripts/ej.web.all.min.js" type="text/javascript"></script>
|
|||
|
<script src="../scripts/properties.js" type="text/javascript"></script>
|
|||
|
</head>
|
|||
|
<body>
|
|||
|
<div class="content-container-fluid">
|
|||
|
<div class="row">
|
|||
|
<div class="cols-sample-area">
|
|||
|
<div class="frame">
|
|||
|
<div class="control">
|
|||
|
<input type="text" id="selectCar" />
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<script type="text/javascript" class="jsScript">
|
|||
|
$(function () {
|
|||
|
// declaration
|
|||
|
var carList = [
|
|||
|
"Audi S6", "Austin-Healey", "Alfa Romeo", "Aston Martin",
|
|||
|
"BMW 7 ", "Bentley Mulsanne", "Bugatti Veyron",
|
|||
|
"Chevrolet Camaro", "Cadillac ",
|
|||
|
"Duesenberg J ", "Dodge Sprinter",
|
|||
|
"Elantra", "Excavator",
|
|||
|
"Ford Boss 302", "Ferrari 360", "Ford Thunderbird ",
|
|||
|
"GAZ Siber",
|
|||
|
"Honda S2000", "Hyundai Santro",
|
|||
|
"Isuzu Swift", "Infiniti Skyline",
|
|||
|
"Jaguar XJS",
|
|||
|
"Kia Sedona EX", "Koenigsegg Agera",
|
|||
|
"Lotus Esprit", "Lamborghini Diablo ",
|
|||
|
"Mercedes-Benz ", "Mercury Coupe", "Maruti Alto 800",
|
|||
|
"Nissan Qashqai",
|
|||
|
"Oldsmobile S98", "Opel Superboss",
|
|||
|
"Porsche 356 ", "Pontiac Sunbird",
|
|||
|
"Scion SRS/SC/SD", "Saab Sportcombi", "Subaru Sambar", "Suzuki Swift",
|
|||
|
"Triumph Spitfire ", "Toyota 2000GT",
|
|||
|
"Volvo P1800", "Volkswagen Shirako"
|
|||
|
];
|
|||
|
|
|||
|
$('#selectCar').ejAutocomplete({
|
|||
|
dataSource: carList,
|
|||
|
width: "100%",
|
|||
|
watermarkText: "Select a car",
|
|||
|
enableRTL: true
|
|||
|
});
|
|||
|
});
|
|||
|
</script>
|
|||
|
</body>
|
|||
|
</html>
|