-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththang.js
45 lines (30 loc) · 1.02 KB
/
thang.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
39
40
41
42
43
44
$(document).ready(function() {
//Button to pop-out form and replace variable.
//$('#edit-1').click(function () {
// $('#editing-form').text("test");
//});
var name, role, aboutMe, email, birthday, address, phone, picture;
//Click the button:
$('#form-submit').submit(function(){
fname = $('#inputFName').val();
lname = $('#inputLName').val();
role = $('#inputRole').val();
email = $('#inputEmail').val();
phone = $('#inputPhone').val();
Ophone = $('#inputOP').val();
address = $('#inputAddress').val();
state = $('#inputCity').val();
// After click submit the change
//
$('.oFname').html(fname);
$('.oLname').html(lname);
$('.oRole').html(role);
$('.oEmail').html(email);
$('.oFPhone').html(Ophone);
$('.oPhone').html(phone);
$('.oAddress').html(address);
$('.oState').html(state);
// After clicking submit
$('#myModal').modal('hide');
})
});