-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinev.js
38 lines (26 loc) · 1.05 KB
/
inev.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$(document).ready(function() {
document.getElementById("company_name").disabled=true;
document.getElementById("car_type").disabled=true;
document.getElementById("car_model").disabled=true;
$("#change").hide();
$("#paid").hide();
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", "inev.php", true);
xmlhttp.send();
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
document.getElementById("company").innerHTML = xmlhttp.responseText;
document.getElementById("company_1").innerHTML = xmlhttp.responseText;
}
}
});
$(document).ready(function() {
var xmlhttp1 = new XMLHttpRequest();
xmlhttp1.open("POST", "inev_type.php", true);
xmlhttp1.send();
xmlhttp1.onreadystatechange = function() {
if (xmlhttp1.readyState == 4 && xmlhttp1.status == 200) {
document.getElementById("type").innerHTML = xmlhttp1.responseText;
}
}
});