-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.js
More file actions
60 lines (44 loc) · 1.28 KB
/
Copy pathsite.js
File metadata and controls
60 lines (44 loc) · 1.28 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
$(function(){
$("#logout").on('click', function(){
let logout = $("#logout").attr('id');
$.ajax({
url: '',
type:'get',
data: {logout:logout},
dataType:'json'
});
});
//Content.php Page Script
$('#edit').on('click', function(){
$('#msbt').css('display','none');
$('#mbtn').text('Edit');
//$('#msbt').attr('name','edit')
// id = $("$id").val();
});
$('#view').on('click', function(){
//$('#vid').attr('id');
id = $("#vid").val();
$.ajax({
url:"",
type:"post",
data: {"id":id},
dataType:'json'
});
});
$('#mbtn').on('click', function(){
id = $('#id').val();
name = $('#name').val();
salary = $('#salary').val();
city = $('#city').val();
//data = {id:id,name:name,salary:salary,city:city};
$.ajax({
url:"",
type:"post",
data: {"id":id,"name":name,"salary":salary,"city":city},
dataType:'json'
});
//$('#mbtn').text('Edit');
//$('#msbt').attr('name','edit')
// id = $("$id").val();
});
});